diff --git a/src/hooks/session/useInitializeUserProfile.tsx b/src/hooks/session/useInitializeUserProfile.tsx index 9491ae4..86fbabe 100644 --- a/src/hooks/session/useInitializeUserProfile.tsx +++ b/src/hooks/session/useInitializeUserProfile.tsx @@ -13,9 +13,9 @@ const useInitializeUserProfile = () => { if (session) { const { user } = session; - - setUser({ ...user }); + return setUser(user); } + setUser(null); } catch (error) { log(error); }