aboutsummaryrefslogtreecommitdiff
path: root/modern/src/MainToolbar.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-06-06 15:07:13 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2020-06-06 15:07:13 -0700
commitcc03e41dd7f9f401797f39eb08e7d4617d624a2f (patch)
tree73e35b23c5d4d0f06382ec3ebd4c4da86611e65d /modern/src/MainToolbar.js
parentd04cd5a9ca34f0528f3db6361641d20bc1a13320 (diff)
downloadtrackermap-web-cc03e41dd7f9f401797f39eb08e7d4617d624a2f.tar.gz
trackermap-web-cc03e41dd7f9f401797f39eb08e7d4617d624a2f.tar.bz2
trackermap-web-cc03e41dd7f9f401797f39eb08e7d4617d624a2f.zip
Fix duplicate loading
Diffstat (limited to 'modern/src/MainToolbar.js')
-rw-r--r--modern/src/MainToolbar.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/modern/src/MainToolbar.js b/modern/src/MainToolbar.js
index bf4aa402..038ab30a 100644
--- a/modern/src/MainToolbar.js
+++ b/modern/src/MainToolbar.js
@@ -46,6 +46,7 @@ const MainToolbar = () => {
const handleLogout = () => {
fetch('/api/session', { method: 'DELETE' }).then(response => {
if (response.ok) {
+ document.authenticated = false;
history.push('/login');
}
})