mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2025-12-13 07:46:10 +00:00
useAuth fix
This commit is contained in:
parent
7a5160291e
commit
02bfb65c45
@ -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) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user