Skip to content

Commit

Permalink
Merge pull request #148 from FinalDoubleTen/dev
Browse files Browse the repository at this point in the history
Refactor: 카카오 로그인 회원가입 여부 판단 수정
  • Loading branch information
LeHiHo authored Jan 12, 2024
2 parents 17c6ca5 + 156cf1f commit 1330198
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/Auth/Login/KakaoLogin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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('로그인에 실패했습니다. 다시 시도해주세요.');
Expand Down

0 comments on commit 1330198

Please sign in to comment.