Skip to content

Commit

Permalink
Refactor: 카카오 로그인 회원가입 여부 판단 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
jseo9732 committed Jan 12, 2024
1 parent 70c8fa9 commit ca58f30
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 ca58f30

Please sign in to comment.