diff --git a/apps/desktop/src/modal/passkeys/fido2-vault.component.ts b/apps/desktop/src/modal/passkeys/fido2-vault.component.ts index ba84929ec8d..ac8cc4a8638 100644 --- a/apps/desktop/src/modal/passkeys/fido2-vault.component.ts +++ b/apps/desktop/src/modal/passkeys/fido2-vault.component.ts @@ -1,5 +1,6 @@ import { CommonModule } from "@angular/common"; import { Component, OnInit, OnDestroy } from "@angular/core"; +import { takeUntilDestroyed } from "@angular/core/rxjs-interop"; import { RouterModule, Router } from "@angular/router"; import { firstValueFrom, map, BehaviorSubject, Observable } from "rxjs"; @@ -70,8 +71,7 @@ export class Fido2VaultComponent implements OnInit, OnDestroy { this.session = this.fido2UserInterfaceService.getCurrentSession(); this.cipherIds$ = this.session?.availableCipherIds$; - // eslint-disable-next-line rxjs-angular/prefer-takeuntil - this.cipherIds$.subscribe((cipherIds) => { + this.cipherIds$.pipe(takeUntilDestroyed()).subscribe((cipherIds) => { this.cipherService .getAllDecryptedForIds(activeUserId, cipherIds || []) .then((ciphers) => {