From 1da6246d9a612a7031d81853616a1a125c7ef429 Mon Sep 17 00:00:00 2001 From: Michel ten Voorde Date: Fri, 15 Aug 2025 09:35:18 +0200 Subject: [PATCH] Hide inactive tournaments by default --- .../player-registrations/player-registrations.component.html | 4 ++-- .../player-registrations/player-registrations.component.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/components/player-registrations/player-registrations.component.html b/src/app/components/player-registrations/player-registrations.component.html index e93c341..b89cab2 100644 --- a/src/app/components/player-registrations/player-registrations.component.html +++ b/src/app/components/player-registrations/player-registrations.component.html @@ -51,8 +51,8 @@ } @if (!this.showAll) { } diff --git a/src/app/components/player-registrations/player-registrations.component.ts b/src/app/components/player-registrations/player-registrations.component.ts index 94920a8..e3b7fdf 100644 --- a/src/app/components/player-registrations/player-registrations.component.ts +++ b/src/app/components/player-registrations/player-registrations.component.ts @@ -112,7 +112,7 @@ export class PlayerRegistrationsComponent implements OnInit { if (this.showAll) { return this.tournamentRegistrations; } else { - return this.tournamentRegistrations.filter(t => (t.status == 'UPCOMING' || t.status == 'ONGOING')); + return this.tournamentRegistrations.filter(t => t.active); } }