Skip to content

Commit

Permalink
Fix: 에러 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
hhbb0081 committed Nov 23, 2023
1 parent 0a0221a commit 2e87c07
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import HomePage from "./pages/Home/Home";
import MainPage from "./pages/Main/MainPage.jsx";

function App() {
const [cookies, setCookie, removeCookies] = useCookies();
const [cookies, , removeCookies] = useCookies();
const navigate = useNavigate();
const apiUrl = process.env.REACT_APP_API_ROOT;

Expand All @@ -25,7 +25,6 @@ function App() {

const expiredTime = 1000 * 60 * 60 * 24;
useInterval(() => {
console.log("!");
if(
cookies.refreshToken !== 'undefined' &&
cookies.refreshToken !== undefined &&
Expand Down
3 changes: 1 addition & 2 deletions src/pages/Mypage/MainMypage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import "./MainMypage.css";
const MainMypage = () => {
const navigate = useNavigate();
const apiUrl = process.env.REACT_APP_API_ROOT;
const [cookies, setCookies, removeCookies] = useCookies();
const [, ,removeCookies] = useCookies();
const setIsLoggedIn = useSetRecoilState(loginState);
const setIsAuthenticated = useSetRecoilState(isAuthenticatedState);

Expand All @@ -30,7 +30,6 @@ const MainMypage = () => {
const config = {
withCredentials: true,
};
console.log("!");

axios.get(apiUrl + "/api/v1/user/logout", config)
.then((response) => {
Expand Down

0 comments on commit 2e87c07

Please sign in to comment.