Feature/update profile sidebar

This commit is contained in:
AmirHossein Mahmoodi
2024-09-16 07:59:19 +00:00
parent 3e8abb7580
commit 9387f85cf7
19 changed files with 230 additions and 203 deletions

View File

@@ -54,7 +54,7 @@ export const AuthProvider = ({ children }) => {
const getUser = useCallback(async () => {
try {
const { data } = await axios.get(GET_USER_ROUTE, { withCredentials: true });
changeUser(data);
changeUser(data.data);
changeAuthState(true);
changeInitAuth(true);
} catch (error) {