From 0001fe5d595b75bc09e01dc688188efa0bb71aa5 Mon Sep 17 00:00:00 2001 From: Ebube Date: Mon, 17 Apr 2023 21:35:22 +0100 Subject: [PATCH] adjusted line --- src/app/modules/auth/core/Auth.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/modules/auth/core/Auth.tsx b/src/app/modules/auth/core/Auth.tsx index 070cf01..4351b7f 100644 --- a/src/app/modules/auth/core/Auth.tsx +++ b/src/app/modules/auth/core/Auth.tsx @@ -102,11 +102,11 @@ const AuthInit: FC = ({children}) => { const logOutSession = setTimeout(() => { logout() }, Number(process.env.REACT_APP_LOGOUT_SESSION_TIMEOUT)) - // eslint-disable-next-line - + return (() => { clearInterval(logOutSession) }) + // eslint-disable-next-line }, [pathname]) return showSplashScreen ? : <>{children} -- 2.34.1