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:
@@ -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 () => {
|
||||
|
||||
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user