Skip to content

Commit

Permalink
chore: 로그인 페이지로 이동하는 코드 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
mlnwns committed Jul 26, 2024
1 parent 2ba1e11 commit a20dd87
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions FE/error/src/components/EconoCalendar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,16 +70,16 @@ const EconoCalendar = ({
// setIsLoggedIn(true);
// }
//TODO: 추후 아래 코드로 변경
// } else {
// const newToken = "dummyToken" + Math.random().toString(36).substr(2, 9); // 임의의 토큰 생성
// localStorage.setItem("slackToken", newToken);
// setToken(newToken);
// setIsLoggedIn(true);
// }
//TODO: 추후 아래 코드로 변경
} else {
const newToken = "dummyToken" + Math.random().toString(36).substr(2, 9); // 임의의 토큰 생성
localStorage.setItem("slackToken", newToken);
setToken(newToken);
setIsLoggedIn(true);
window.location.href = "/login";
}
//TODO: 추후 아래 코드로 변경
// } else {
// window.location.href = "/login";
// }
};

return (
Expand Down

0 comments on commit a20dd87

Please sign in to comment.