diff --git a/apps/web/src/app/auth/core/services/webauthn/webauthn.service.ts b/apps/web/src/app/auth/core/services/webauthn/webauthn.service.ts index 80a580d4d65..5153ae1ab8f 100644 --- a/apps/web/src/app/auth/core/services/webauthn/webauthn.service.ts +++ b/apps/web/src/app/auth/core/services/webauthn/webauthn.service.ts @@ -22,6 +22,7 @@ export class WebauthnService { private _loading$ = new BehaviorSubject(true); readonly credentials$ = this._refresh$.pipe( + tap(() => this._loading$.next(true)), switchMap(() => this.getCredentials$()), tap(() => this._loading$.next(false)), shareReplay({ bufferSize: 1, refCount: true }) @@ -104,7 +105,6 @@ export class WebauthnService { } private refresh() { - this._loading$.next(true); this._refresh$.next(); } }