Skip to content

Commit

Permalink
Fix: 로그인 필요 문구 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
milkbottle0305 committed Apr 8, 2024
1 parent 983624b commit c00fb5c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/pages/PrivateRoute/PrivateRoute.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function PrivateRoute({ authentication }) {
);
setIsAuthenticated(isAuthenticated);
} catch (error) {
alert("토큰이 만료되어 로그인이 필요합니다.");
alert("로그인을 하시고 다시 시도해주세요.");
localStorage.removeItem("studitAccessToken");
localStorage.removeItem("studitRefreshToken");
setIsAuthenticated(false);
Expand Down
1 change: 0 additions & 1 deletion src/pages/Splash/components/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ function Header({ setSigninClicked, setSignupClicked }) {
);
setIsAuthenticated(isAuthenticated);
} catch (error) {
alert("토큰이 만료되어 로그인이 필요합니다.");
localStorage.removeItem("studitAccessToken");
localStorage.removeItem("studitRefreshToken");
setIsAuthenticated(false);
Expand Down

0 comments on commit c00fb5c

Please sign in to comment.