From aa67190f3cba7f96410a100a1774c7cbc7e50c2b Mon Sep 17 00:00:00 2001 From: Todd Martin <106564991+trmartin4@users.noreply.github.com> Date: Fri, 2 Feb 2024 20:43:47 -0500 Subject: [PATCH] [PM-5991] Updated ordering on account switch to route before clearing state (#7797) --- apps/desktop/src/app/layout/account-switcher.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/desktop/src/app/layout/account-switcher.component.ts b/apps/desktop/src/app/layout/account-switcher.component.ts index d6597c0422..7e6256e9ba 100644 --- a/apps/desktop/src/app/layout/account-switcher.component.ts +++ b/apps/desktop/src/app/layout/account-switcher.component.ts @@ -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: {