We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da3cbb3 commit f60f3caCopy full SHA for f60f3ca
src/pages/auth/SignIn.jsx
@@ -58,8 +58,14 @@ function SignIn() {
58
login(response.data.accessToken, response.data.refreshToken, response.data.nickname);
59
60
setIsIdPwMatch(true);
61
- navigate(from, { replace: true });
62
- navigate(-1); // 왠진 모르겠지만 해줘야 정상 작동함...
+ // location.state?.from?.pathname
+ if (from === "/signup/success") {
63
+ // 방금 회원가입 한 경우
64
+ navigate("/");
65
+ } else {
66
+ navigate(from, { replace: true });
67
+ navigate(-1); // 왠진 모르겠지만 해줘야 정상 작동함...
68
+ }
69
} else {
70
setIsIdPwMatch(false);
71
}
0 commit comments