[PM-5991] Updated ordering on account switch to route before clearing state (#7797)

This commit is contained in:
Todd Martin 2024-02-02 20:43:47 -05:00 committed by GitHub
parent d047723f04
commit aa67190f3c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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: {