Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fully tested and updated working main branch #47

Merged
merged 18 commits into from
Nov 18, 2024
Merged
Prev Previous commit
Next Next commit
testing.
jyassien committed Nov 17, 2024
commit 63f40cd66b99d1284c19a5465cedf9bc6be5f122
5 changes: 1 addition & 4 deletions src/contexts/AccountContext.jsx
Original file line number Diff line number Diff line change
@@ -86,10 +86,7 @@ export const AccountProvider = ({ children }) => {
// Account ifno initialization and update functions
const getUserAccInfo = async (userId, headers = {}) => {
try {
const response = await axios.get(
`${url}/users/${userId}/account`,
headers
);
const response = await axios.get(`/users/${userId}/account`, headers);
// console.log("Response:", response.data);
// console.log("Response:", response.status);
const data = response?.data;