diff --git a/src/pages/Login/KakaoRedirect.tsx b/src/pages/Login/KakaoRedirect.tsx index 55432081..80809beb 100644 --- a/src/pages/Login/KakaoRedirect.tsx +++ b/src/pages/Login/KakaoRedirect.tsx @@ -22,9 +22,9 @@ const KakaoRedirect = () => { localStorage.setItem('userToken', accessToken); localStorage.setItem('user', JSON.stringify(authMemberInformation)); - queryClient.refetchQueries({ queryKey: ['ideas'] }); - navigate('/'); + + queryClient.refetchQueries({ queryKey: ['ideas'] }); return; }