Skip to content

Commit

Permalink
fix: navigate to / not /login when request failed #24
Browse files Browse the repository at this point in the history
  • Loading branch information
luckylooky2 committed Sep 25, 2023
1 parent 6c341e5 commit 7f0447b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/Main/ProfileModal/CallHistoryList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const CallHistoryList = () => {
setCallHistory(response.data);
} catch (e) {
alert("로그인 정보가 유효하지 않습니다. 다시 로그인 해주세요.");
navigate("/login");
navigate("/");
}
}, []);

Expand Down
2 changes: 1 addition & 1 deletion src/pages/Main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const Main = () => {
connectSocket(response.data.nickname);
} catch (e) {
alert("로그인 정보가 유효하지 않습니다. 다시 로그인 해주세요.");
navigate("/login");
navigate("/");
}
}, []);

Expand Down

0 comments on commit 7f0447b

Please sign in to comment.