From 63df642aa5b3402d6ab49439fdd7a7ee6a45e352 Mon Sep 17 00:00:00 2001 From: Cristhian Zanforlin Lousa Date: Fri, 11 Aug 2023 20:23:10 -0300 Subject: [PATCH] adding community to route guard --- src/frontend/src/controllers/API/api.tsx | 1 - src/frontend/src/routes.tsx | 9 ++++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/frontend/src/controllers/API/api.tsx b/src/frontend/src/controllers/API/api.tsx index 5a7c866dd..4a5f76173 100644 --- a/src/frontend/src/controllers/API/api.tsx +++ b/src/frontend/src/controllers/API/api.tsx @@ -12,7 +12,6 @@ const api: AxiosInstance = axios.create({ }); function ApiInterceptor() { - const retryCounts = useRef([]); const { setErrorData } = useContext(alertContext); const { accessToken, refreshAccessToken, login, logout } = useContext(AuthContext); const navigate = useNavigate(); diff --git a/src/frontend/src/routes.tsx b/src/frontend/src/routes.tsx index 43a5bc32e..db0c47770 100644 --- a/src/frontend/src/routes.tsx +++ b/src/frontend/src/routes.tsx @@ -20,7 +20,14 @@ const Router = () => { } /> - } /> + + + + } + />