diff --git a/frontend/app/src/app/modules/profile/id-cards.provider.ts b/frontend/app/src/app/modules/profile/id-cards.provider.ts index 2d02f002..c6e1a32c 100644 --- a/frontend/app/src/app/modules/profile/id-cards.provider.ts +++ b/frontend/app/src/app/modules/profile/id-cards.provider.ts @@ -41,7 +41,7 @@ export class IdCardsProvider { mergeMap(user => this.fetchFallbackIdCards(user)), startWith([]), ) - : of([]).pipe(tap(() => this.encryptedStorageProvider.delete('id-cards'))), + : of([]).pipe(tap({next: () => this.encryptedStorageProvider.delete('id-cards')})), ), ); } @@ -54,7 +54,7 @@ export class IdCardsProvider { }, responseType: 'json', }) - .pipe(tap(idCards => this.encryptedStorageProvider.set('id-cards', idCards))); + .pipe(tap({next: idCards => this.encryptedStorageProvider.set('id-cards', idCards)})); } private fetchFallbackIdCards(user: SCUserConfiguration): Observable {