Skip to content

Commit

Permalink
Fix: 가입 여부에 상관없이 userId 설정하도록 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
sscoderati committed Jan 17, 2024
1 parent 07111d4 commit 4fa017a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/loginPending/LoginPending.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ const LoginPending = () => {
.get<LoginResponse>(`/v1/users/login/${provider}?authCode=${authCode}`)
.then((res) => {
const { userId, accessToken, refreshToken, isRegistered } = res.data;
setUserId(userId);

if (!isRegistered) {
navigate("/register/user", { state: { userId: userId } });
Expand All @@ -40,7 +41,6 @@ const LoginPending = () => {
accessToken: accessToken,
refreshToken: refreshToken,
});
setUserId(userId);
navigate("/", { replace: true });
}
})
Expand Down

0 comments on commit 4fa017a

Please sign in to comment.