Figure out user manager for account user
This commit is contained in:
parent
3492558e06
commit
95a8e64fbb
16 changed files with 152 additions and 106 deletions
|
@ -124,8 +124,7 @@ const SettingsIcons = (props) => {
|
|||
} catch (e) {
|
||||
console.log(`[ActionBar] Error unsubscribing`, e);
|
||||
if ((e instanceof UnauthorizedError)) {
|
||||
session.reset();
|
||||
window.location.href = routes.login;
|
||||
session.resetAndRedirect(routes.login);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -272,8 +271,7 @@ const ProfileIcon = (props) => {
|
|||
try {
|
||||
await accountApi.logout();
|
||||
} finally {
|
||||
session.reset();
|
||||
window.location.href = routes.app;
|
||||
session.resetAndRedirect(routes.app);
|
||||
}
|
||||
};
|
||||
return (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue