1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-05 19:23:19 +00:00

[PM-2014] fix: use getCredentials$()

This commit is contained in:
Andreas Coroiu
2023-09-27 12:51:20 +02:00
parent 06ad6a5eae
commit b1b5c53b1e
2 changed files with 5 additions and 4 deletions

View File

@@ -57,9 +57,9 @@ export class CreateCredentialDialogComponent implements OnInit {
) {}
ngOnInit(): void {
this.hasPasskeys$ = this.webauthnService.credentials$.pipe(
map((credentials) => credentials.length > 0)
);
this.hasPasskeys$ = this.webauthnService
.getCredentials$()
.pipe(map((credentials) => credentials.length > 0));
}
protected submit = async () => {

View File

@@ -47,7 +47,8 @@ export class WebauthnLoginSettingsComponent implements OnInit, OnDestroy {
}
ngOnInit(): void {
this.webauthnService.credentials$
this.webauthnService
.getCredentials$()
.pipe(takeUntil(this.destroy$))
.subscribe((credentials) => (this.credentials = credentials));