mirror of
https://github.com/bitwarden/browser
synced 2025-12-19 17:53:39 +00:00
Delete Unused Bits of StateService (#9858)
* Delete Unused Bits of StateService * Fix Tests
This commit is contained in:
@@ -165,8 +165,6 @@ export class AccountSwitcherComponent {
|
||||
async addAccount() {
|
||||
this.close();
|
||||
|
||||
const activeAccount = await firstValueFrom(this.accountService.activeAccount$);
|
||||
await this.stateService.clearDecryptedData(activeAccount?.id as UserId);
|
||||
await this.accountService.switchAccount(null);
|
||||
await this.router.navigate(["/login"]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user