diff options
author | Simponic <loganhunt@simponic.xyz> | 2023-01-20 23:58:24 -0700 |
---|---|---|
committer | Simponic <loganhunt@simponic.xyz> | 2023-01-20 23:58:28 -0700 |
commit | a634901317de06ca09f3d78b3d0205c4d19df0cf (patch) | |
tree | 4d8ecd8986e28a166b55b6cabf123976e497f94b /front/src/context/auth_context.js | |
parent | 804d47d81db5c2bda4465dab28276bf2cab226d1 (diff) | |
download | chessh-a634901317de06ca09f3d78b3d0205c4d19df0cf.tar.gz chessh-a634901317de06ca09f3d78b3d0205c4d19df0cf.zip |
Remove annoying alert
Diffstat (limited to 'front/src/context/auth_context.js')
-rw-r--r-- | front/src/context/auth_context.js | 9 |
1 files changed, 1 insertions, 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; |