1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-08 12:40:26 +00:00

introducing convertAccountRequired$

This commit is contained in:
Maciej Zieniuk
2025-03-25 19:07:48 +00:00
parent e1f8450ed6
commit 7d1bdb8fe0
6 changed files with 43 additions and 75 deletions

View File

@@ -94,7 +94,6 @@ export class RemovePasswordComponent implements OnInit {
this.leaving = true;
try {
await this.organizationApiService.leave(this.organization.id);
await this.keyConnectorService.removeConvertAccountRequired(this.activeUserId);
this.toastService.showToast({
variant: "success",

View File

@@ -47,7 +47,7 @@ export const authGuard: CanActivateFn = async (
if (
!routerState.url.includes("remove-password") &&
(await keyConnectorService.getConvertAccountRequired())
(await firstValueFrom(keyConnectorService.convertAccountRequired$))
) {
return router.createUrlTree(["/remove-password"]);
}