Skip to content

Commit

Permalink
[PM-5991] Updated ordering on account switch to route before clearing…
Browse files Browse the repository at this point in the history
… state (#7797)

(cherry picked from commit aa67190)
  • Loading branch information
trmartin4 committed Feb 3, 2024
1 parent 4990c53 commit c8009ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/desktop/src/app/layout/account-switcher.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,9 @@ export class AccountSwitcherComponent implements OnInit, OnDestroy {

async addAccount() {
this.close();
await this.stateService.setActiveUser(null);
await this.stateService.setRememberedEmail(null);
await this.router.navigate(["/login"]);
await this.stateService.setActiveUser(null);
}

private async createInactiveAccounts(baseAccounts: {
Expand Down

0 comments on commit c8009ba

Please sign in to comment.