diff --git a/src/components/Main/ProfileModal/CallHistoryList.tsx b/src/components/Main/ProfileModal/CallHistoryList.tsx index 2b9f584..74c7337 100644 --- a/src/components/Main/ProfileModal/CallHistoryList.tsx +++ b/src/components/Main/ProfileModal/CallHistoryList.tsx @@ -16,7 +16,7 @@ const CallHistoryList = () => { setCallHistory(response.data); } catch (e) { alert("로그인 정보가 유효하지 않습니다. 다시 로그인 해주세요."); - navigate("/login"); + navigate("/"); } }, []); diff --git a/src/pages/Main.tsx b/src/pages/Main.tsx index e8eef16..e163ce5 100644 --- a/src/pages/Main.tsx +++ b/src/pages/Main.tsx @@ -39,7 +39,7 @@ const Main = () => { connectSocket(response.data.nickname); } catch (e) { alert("로그인 정보가 유효하지 않습니다. 다시 로그인 해주세요."); - navigate("/login"); + navigate("/"); } }, []);