Skip to content

Commit 06a9f25

Browse files
committed
fix: 로그인 완료 후 경로 변경
1 parent cfea765 commit 06a9f25

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

components/auth/LoginForm.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const LoginForm = ({ handleOpenModal }: LoginFormProps) => {
3636
);
3737
const user = result.user;
3838
// console.log('로그인 성공 : ', user);
39-
router.push('/main');
39+
router.push('/');
4040
} catch (err: unknown) {
4141
if (err instanceof Error) {
4242
}
@@ -65,7 +65,7 @@ const LoginForm = ({ handleOpenModal }: LoginFormProps) => {
6565
password
6666
);
6767
// console.log('로그인 성공!', userCredential.user);
68-
router.push('/main');
68+
router.push('/');
6969
} catch (err) {
7070
// console.error('로그인 에러:', err);
7171
setError('이메일 또는 비밀번호가 잘못되었습니다.');

0 commit comments

Comments
 (0)