From 2865fc34150c41ddec3cb67d94545f26d718573b Mon Sep 17 00:00:00 2001 From: Kalle <38327916+Sendouc@users.noreply.github.com> Date: Sun, 26 Apr 2026 14:55:05 +0300 Subject: [PATCH] Have "simple seeded list" get all teams if none checked in yet Previous behavior just looks broken to users. Proper fix is still just making a more robust team export. --- app/features/tournament/routes/to.$id.admin.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/features/tournament/routes/to.$id.admin.tsx b/app/features/tournament/routes/to.$id.admin.tsx index a6ab4b8a6..297d015c8 100644 --- a/app/features/tournament/routes/to.$id.admin.tsx +++ b/app/features/tournament/routes/to.$id.admin.tsx @@ -589,6 +589,10 @@ function DownloadParticipants() { } function simpleListInSeededOrder() { + const hasCheckedInTeams = tournament.ctx.teams.some( + (team) => team.checkIns.length > 0, + ); + return tournament.ctx.teams .slice() .sort( @@ -596,7 +600,7 @@ function DownloadParticipants() { (a.seed ?? Number.POSITIVE_INFINITY) - (b.seed ?? Number.POSITIVE_INFINITY), ) - .filter((team) => team.checkIns.length > 0) + .filter((team) => !hasCheckedInTeams || team.checkIns.length > 0) .map((team) => team.name) .join("\n"); }