From 51099aa9e7d2a9fc2883b7946e300906bfe5a6ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elias=20H=C3=B6rner?= Date: Sun, 29 Jun 2025 09:52:33 +0200 Subject: [PATCH] fix --- .../pages/view-tournament/view-tournament.component.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/Turnierplan.App/Client/src/app/portal/pages/view-tournament/view-tournament.component.ts b/src/Turnierplan.App/Client/src/app/portal/pages/view-tournament/view-tournament.component.ts index 989dd050..c12d4cc6 100644 --- a/src/Turnierplan.App/Client/src/app/portal/pages/view-tournament/view-tournament.component.ts +++ b/src/Turnierplan.App/Client/src/app/portal/pages/view-tournament/view-tournament.component.ts @@ -468,9 +468,13 @@ export class ViewTournamentComponent implements OnInit, OnDestroy { const team = this.tournament.teams.find((x) => x.id === teamId); if (team) { - // This is only an approximation because the actual value of the 'entryFeePaidAt' of the team will - // be slightly different. IDEA: An additional request could be performed to get the actual value. - team.entryFeePaidAt = new Date().toISOString(); + if (entryFeePaid) { + // This is only an approximation because the actual value of the 'entryFeePaidAt' of the team will + // be slightly different. IDEA: An additional request could be performed to get the actual value. + team.entryFeePaidAt = new Date().toISOString(); + } else { + team.entryFeePaidAt = undefined; + } } this.processTournament();