diff options
| -rw-r--r-- | gui/src/renderer/app.tsx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gui/src/renderer/app.tsx b/gui/src/renderer/app.tsx index afdda1d401..87d1d1440d 100644 --- a/gui/src/renderer/app.tsx +++ b/gui/src/renderer/app.tsx @@ -780,6 +780,9 @@ export default class AppRenderer { switch (this.loginState) { case 'none': + reduxAccount.loggedIn(accountToken, device); + this.resetNavigation(); + break; case 'logging in': reduxAccount.loggedIn(accountToken, device); @@ -793,10 +796,6 @@ export default class AppRenderer { reduxAccount.accountCreated(accountToken, device, new Date().toISOString()); break; } - - if (this.loginState !== 'logging in' && this.loginState !== 'creating account') { - this.resetNavigation(); - } break; } case 'logged out': |
