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:
parent
06ad6a5eae
commit
b1b5c53b1e
@ -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));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user