From 2e87c070c032e3261a99c4477fb0309e2a64dfb1 Mon Sep 17 00:00:00 2001 From: happppi <102276917+hhbb0081@users.noreply.github.com> Date: Thu, 23 Nov 2023 22:05:24 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20=EC=97=90=EB=9F=AC=20=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.js | 3 +-- src/pages/Mypage/MainMypage.jsx | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/App.js b/src/App.js index 1934ab4..198841d 100644 --- a/src/App.js +++ b/src/App.js @@ -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; @@ -25,7 +25,6 @@ function App() { const expiredTime = 1000 * 60 * 60 * 24; useInterval(() => { - console.log("!"); if( cookies.refreshToken !== 'undefined' && cookies.refreshToken !== undefined && diff --git a/src/pages/Mypage/MainMypage.jsx b/src/pages/Mypage/MainMypage.jsx index 04c634e..1fd44d2 100644 --- a/src/pages/Mypage/MainMypage.jsx +++ b/src/pages/Mypage/MainMypage.jsx @@ -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); @@ -30,7 +30,6 @@ const MainMypage = () => { const config = { withCredentials: true, }; - console.log("!"); axios.get(apiUrl + "/api/v1/user/logout", config) .then((response) => {