diff --git a/src/routes/Auth/kakao/KakaoLogin.tsx b/src/routes/Auth/kakao/KakaoLogin.tsx index 6fffd70..4dcb0f2 100644 --- a/src/routes/Auth/kakao/KakaoLogin.tsx +++ b/src/routes/Auth/kakao/KakaoLogin.tsx @@ -25,16 +25,14 @@ const KakaoLogin = () => { if (kakaoCode) { try { const response = await kakaoLogin(kakaoCode); - if (response && response.accessToken) { - if (response.newMember) { - navigate(`/signup`, { - state: { memberId: response.memberId }, - }); - } else { - client.setAccessToken(response.accessToken); - login(); - navigate('/'); - } + if (response.newMember) { + navigate(`/signup`, { + state: { memberId: response.memberId }, + }); + } else { + client.setAccessToken(response.accessToken); + login(); + navigate('/'); } } catch (err) { if (err instanceof ResponseError) {