From d20e3eabccf02edf926f1c931ea5b280951ff18a Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Fri, 3 Sep 2021 23:20:02 -0700 Subject: Fix logout exception --- modern/src/components/BottomMenu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modern/src') 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; -- cgit v1.2.3