From a634901317de06ca09f3d78b3d0205c4d19df0cf Mon Sep 17 00:00:00 2001 From: Simponic Date: Fri, 20 Jan 2023 23:58:24 -0700 Subject: [PATCH] Remove annoying alert --- front/src/context/auth_context.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/front/src/context/auth_context.js b/front/src/context/auth_context.js index 19747c6..e78b0c5 100644 --- a/front/src/context/auth_context.js +++ b/front/src/context/auth_context.js @@ -37,14 +37,7 @@ export const AuthProvider = ({ children }) => { setTimeout(() => { setSessionOver((sessionOver) => { if (Date.now() >= sessionOver) { - setSignedIn((signedIn) => { - if (signedIn) - alert( - "Session expired. Any further privileged requests will fail until signed in again." - ); - - return false; - }); + setSignedIn(false); setPlayer(null); } return sessionOver;