aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--frontend/src/components/login.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/frontend/src/components/login.js b/frontend/src/components/login.js
index db8cc4c..0932c16 100644
--- a/frontend/src/components/login.js
+++ b/frontend/src/components/login.js
@@ -14,9 +14,9 @@ function login() {
14} 14}
15function logout() { 15function logout() {
16 fetch(`/api/v1/token`,{'method':'DELETE'}) 16 fetch(`/api/v1/token`,{'method':'DELETE'})
17 setToken(null)
18 setProfile(null)
19 setIsLoggedIn(false) 17 setIsLoggedIn(false)
18 setProfile(null)
19 setToken(null)
20 window.location.href="/" 20 window.location.href="/"
21} 21}
22const [token, setToken] = React.useState(null); 22const [token, setToken] = React.useState(null);