aboutsummaryrefslogtreecommitdiff
path: root/modern/src
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2021-09-03 23:20:02 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2021-09-03 23:20:02 -0700
commitd20e3eabccf02edf926f1c931ea5b280951ff18a (patch)
tree986a2032879e61f43d5b391038917ae07bc2d324 /modern/src
parentef4729c64a0bd9124a20da0a223642a5ec4beff7 (diff)
downloadetbsa-traccar-web-d20e3eabccf02edf926f1c931ea5b280951ff18a.tar.gz
etbsa-traccar-web-d20e3eabccf02edf926f1c931ea5b280951ff18a.tar.bz2
etbsa-traccar-web-d20e3eabccf02edf926f1c931ea5b280951ff18a.zip
Fix logout exception
Diffstat (limited to 'modern/src')
-rw-r--r--modern/src/components/BottomMenu.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/modern/src/components/BottomMenu.js b/modern/src/components/BottomMenu.js
index e994f8f..a1e9625 100644
--- a/modern/src/components/BottomMenu.js
+++ b/modern/src/components/BottomMenu.js
@@ -45,8 +45,8 @@ const BottomMenu = () => {
break;
case 3:
await fetch('/api/session', { method: 'DELETE' });
- dispatch(sessionActions.updateUser(null));
history.push('/login');
+ dispatch(sessionActions.updateUser(null));
break;
default:
break;