diff options
author | 2019-10-23 13:06:25 +0200 | |
---|---|---|
committer | 2019-10-23 13:06:25 +0200 | |
commit | 15b39bfc2d4903a37977662f4beaa9f325a94398 (patch) | |
tree | 44733107b195a435fec8fb434a29aeb5b47b7cbe /src/components/settings/navigation | |
parent | Remove git status from cloning steps (diff) | |
download | ferdium-app-15b39bfc2d4903a37977662f4beaa9f325a94398.tar.gz ferdium-app-15b39bfc2d4903a37977662f4beaa9f325a94398.tar.zst ferdium-app-15b39bfc2d4903a37977662f4beaa9f325a94398.zip |
Fix infinite loading screen when logging out
Diffstat (limited to 'src/components/settings/navigation')
-rw-r--r-- | src/components/settings/navigation/SettingsNavigation.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/settings/navigation/SettingsNavigation.js b/src/components/settings/navigation/SettingsNavigation.js index 49e73e569..192cfde7a 100644 --- a/src/components/settings/navigation/SettingsNavigation.js +++ b/src/components/settings/navigation/SettingsNavigation.js | |||
@@ -86,9 +86,9 @@ export default @inject('stores', 'actions') @observer class SettingsNavigation e | |||
86 | }, | 86 | }, |
87 | }); | 87 | }); |
88 | } | 88 | } |
89 | this.props.stores.user.isLoggingOut = true; | ||
89 | } | 90 | } |
90 | 91 | ||
91 | this.props.stores.user.isLoggingOut = true; | ||
92 | this.props.stores.router.push(isLoggedIn ? '/auth/logout' : '/auth/welcome'); | 92 | this.props.stores.router.push(isLoggedIn ? '/auth/logout' : '/auth/welcome'); |
93 | 93 | ||
94 | if (isLoggedIn) { | 94 | if (isLoggedIn) { |