diff options
author | kytwb <kytwb@pm.me> | 2021-12-18 14:52:16 +0100 |
---|---|---|
committer | kytwb <kytwb@pm.me> | 2021-12-18 14:52:16 +0100 |
commit | 84eda12b39ee20b0529ddacd756ff4c34c8411a2 (patch) | |
tree | 1972bdddff5edf07fd5a89b9c89e63927877f7b6 /src/components/settings | |
parent | Fix classes names for Welcome screen (diff) | |
download | ferdium-app-84eda12b39ee20b0529ddacd756ff4c34c8411a2.tar.gz ferdium-app-84eda12b39ee20b0529ddacd756ff4c34c8411a2.tar.zst ferdium-app-84eda12b39ee20b0529ddacd756ff4c34c8411a2.zip |
Redirect to Welcome screen on logout/exit session
Diffstat (limited to 'src/components/settings')
-rw-r--r-- | src/components/settings/navigation/SettingsNavigation.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/components/settings/navigation/SettingsNavigation.js b/src/components/settings/navigation/SettingsNavigation.js index 9dfa0115d..953760fec 100644 --- a/src/components/settings/navigation/SettingsNavigation.js +++ b/src/components/settings/navigation/SettingsNavigation.js | |||
@@ -78,9 +78,7 @@ class SettingsNavigation extends Component { | |||
78 | this.props.stores.user.isLoggingOut = true; | 78 | this.props.stores.user.isLoggingOut = true; |
79 | } | 79 | } |
80 | 80 | ||
81 | this.props.stores.router.push( | 81 | this.props.stores.router.push('/auth/welcome'); |
82 | isLoggedIn ? '/auth/logout' : '/auth/welcome', | ||
83 | ); | ||
84 | 82 | ||
85 | if (isLoggedIn) { | 83 | if (isLoggedIn) { |
86 | // Reload Ferdi, otherwise many settings won't sync correctly with the server | 84 | // Reload Ferdi, otherwise many settings won't sync correctly with the server |