From e59f4dc4f0eedbf77ff4285360b56e1bb7219fef Mon Sep 17 00:00:00 2001 From: Jeongmin Lee Date: Sun, 6 Oct 2024 23:19:31 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20chore:=20session=20=EC=97=86?= =?UTF-8?q?=EC=9D=84=20=EC=8B=9C=20=EC=A0=84=EC=97=AD=20user=20=EB=8D=B0?= =?UTF-8?q?=EC=9D=B4=ED=84=B0=20=EC=82=AD=EC=A0=9C=20#50?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/hooks/session/useInitializeUserProfile.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }