Skip to content

Commit d8ccfa7

Browse files
authored
Merge pull request #455 from velopert/fix/redirect-new-home-onlogin
fix: redirect new home onlogin
2 parents 4c35671 + 7b4aa14 commit d8ccfa7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/containers/etc/EmailLogin.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const EmailLogin: React.FC<EmailLoginProps> = ({ location, history }) => {
4242
});
4343

4444
storage.setItem('CURRENT_USER', response.data.auth);
45-
history.replace('/');
45+
window.location.href = '/';
4646
} catch (e) {
4747
// TODO: show 401
4848
toast.error('잘못된 접근입니다.');

0 commit comments

Comments
 (0)