useAuth fix

This commit is contained in:
Anton Tranelis 2024-03-19 21:45:00 +01:00
parent 7a5160291e
commit 02bfb65c45

View File

@ -114,6 +114,7 @@ export const AuthProvider = ({ userApi, children }: AuthProviderProps) => {
try { try {
const res = await userApi.updateUser(userRest); const res = await userApi.updateUser(userRest);
setUser(res as any); setUser(res as any);
loadUser();
setLoading(false); setLoading(false);
return res as any; return res as any;
} catch (error: any) { } catch (error: any) {