mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-29 05:00:43 +10:00
Redirect after logout not before (helps with verify-email popup)
This commit is contained in:
parent
e121f0c3ae
commit
99752865d8
1 changed files with 2 additions and 2 deletions
|
|
@ -133,9 +133,9 @@ class TopbarComponent extends Component {
|
|||
|
||||
handleLogout() {
|
||||
const { onLogout, history, flattenedRoutes } = this.props;
|
||||
const path = pathByRouteName('LandingPage', flattenedRoutes);
|
||||
history.push(path);
|
||||
onLogout().then(() => {
|
||||
const path = pathByRouteName('LandingPage', flattenedRoutes);
|
||||
history.push(path);
|
||||
// TODO: show flash message
|
||||
console.log('logged out'); // eslint-disable-line
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue