1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-06 11:43:51 +00:00

[PM-2014] fix: loading state not being set properly

This commit is contained in:
Andreas Coroiu
2023-05-10 11:34:13 +02:00
parent 524288df77
commit ef507cb2ac

View File

@@ -22,6 +22,7 @@ export class WebauthnService {
private _loading$ = new BehaviorSubject<boolean>(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();
}
}