diff --git a/apps/web/src/app/auth/settings/webauthn-login-settings/create-credential-dialog/create-credential-dialog.component.ts b/apps/web/src/app/auth/settings/webauthn-login-settings/create-credential-dialog/create-credential-dialog.component.ts index 531515a949f..cdecc9ebeaa 100644 --- a/apps/web/src/app/auth/settings/webauthn-login-settings/create-credential-dialog/create-credential-dialog.component.ts +++ b/apps/web/src/app/auth/settings/webauthn-login-settings/create-credential-dialog/create-credential-dialog.component.ts @@ -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 () => { diff --git a/apps/web/src/app/auth/settings/webauthn-login-settings/webauthn-login-settings.component.ts b/apps/web/src/app/auth/settings/webauthn-login-settings/webauthn-login-settings.component.ts index 3c59bd30ed4..98aa517b98e 100644 --- a/apps/web/src/app/auth/settings/webauthn-login-settings/webauthn-login-settings.component.ts +++ b/apps/web/src/app/auth/settings/webauthn-login-settings/webauthn-login-settings.component.ts @@ -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));