mirror of
https://github.com/bitwarden/browser
synced 2026-02-08 12:40:26 +00:00
introducing convertAccountRequired$
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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"]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user