1
0
mirror of https://github.com/bitwarden/browser.git synced 2025-01-07 19:07:45 +01: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
No known key found for this signature in database
GPG Key ID: E70B5FFC81DFEC1A
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));