From 9b5ac1b22c03de9d2ba549e01302bf17b2d6ed9c Mon Sep 17 00:00:00 2001 From: Cristhian Zanforlin Lousa Date: Sat, 12 Aug 2023 15:44:25 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20fix(App.tsx):=20remove=20unused?= =?UTF-8?q?=20isAuthenticated=20variable=20to=20improve=20code=20readabili?= =?UTF-8?q?ty=20=F0=9F=94=A7=20fix(App.tsx):=20remove=20unused=20isAuthent?= =?UTF-8?q?icated=20variable=20to=20improve=20code=20readability?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/frontend/src/App.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontend/src/App.tsx b/src/frontend/src/App.tsx index 052168628..7ccb7cba0 100644 --- a/src/frontend/src/App.tsx +++ b/src/frontend/src/App.tsx @@ -127,8 +127,8 @@ export default function App() { ); }; - const { setUserData, getAuthentication, isAuthenticated } = useContext(AuthContext); - + //this function is to get the user logged in when the page is refreshed + const { setUserData, getAuthentication } = useContext(AuthContext); useEffect(() => { setTimeout(() => { if(getAuthentication && !isLoginPage){