diff --git a/src/Components/Login/LogoutKakao.js b/src/Components/Login/LogoutKakao.js index 2d96930..743bebe 100644 --- a/src/Components/Login/LogoutKakao.js +++ b/src/Components/Login/LogoutKakao.js @@ -13,15 +13,16 @@ const LogoutKakao = () => { if (Kakao && Kakao.Auth) { Kakao.Auth.logout(() => { - localStorage.clear() setUser(null) + localStorage.clear() console.log('Logged out successfully') }) } if (localStorage.getItem('kakaoToken')) { - localStorage.clear() setUser(null) + localStorage.clear() + } navigate('/') }