From ca58f30ea208632e018369ab47a4917fff1dff28 Mon Sep 17 00:00:00 2001 From: jisu Seo Date: Fri, 12 Jan 2024 11:31:48 +0900 Subject: [PATCH] =?UTF-8?q?Refactor:=20=EC=B9=B4=EC=B9=B4=EC=98=A4=20?= =?UTF-8?q?=EB=A1=9C=EA=B7=B8=EC=9D=B8=20=ED=9A=8C=EC=9B=90=EA=B0=80?= =?UTF-8?q?=EC=9E=85=20=EC=97=AC=EB=B6=80=20=ED=8C=90=EB=8B=A8=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Auth/Login/KakaoLogin.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/Auth/Login/KakaoLogin.tsx b/src/components/Auth/Login/KakaoLogin.tsx index 541ce440..5146b85c 100644 --- a/src/components/Auth/Login/KakaoLogin.tsx +++ b/src/components/Auth/Login/KakaoLogin.tsx @@ -29,9 +29,11 @@ const KakaoLogin = () => { survey: null, }); if (signup) { - navigate('/signup/success'); - } else { + // signup이 true면 이미 회원가입을 했던 유저 navigate('/'); + } else { + // signup이 false면 이전에 회원가입을 하지 않았던 유저 + navigate('/signup/success'); } } else { alert('로그인에 실패했습니다. 다시 시도해주세요.');