1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-15 15:53:27 +00:00

[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

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