fix: NCWF-4 Token Issues (#8)

Co-authored-by: Lala, Shahd <Shahd.Lala@sybit.de>
Co-authored-by: shahdlala66 <shahd.lala66@gmail.com>
Reviewed-on: #8
This commit was merged in pull request #8.
This commit is contained in:
2026-06-02 21:55:55 +02:00
parent 873bfe3bae
commit 95eff42dfe
37 changed files with 2522 additions and 573 deletions
+8 -1
View File
@@ -85,7 +85,14 @@ export class GamesComponent implements OnInit {
}
const requests = ids.map((id) =>
this.gameApi.getGame(id).pipe(catchError(() => of(null)))
this.gameApi.getGame(id).pipe(
catchError((err: unknown) => {
if (typeof err === 'object' && err !== null && (err as { status: number }).status === 404) {
this.gameHistory.removeGame(id);
}
return of(null);
})
)
);
forkJoin(requests)