mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-05-20 10:18:24 -05:00
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.
This commit is contained in:
parent
a221dcbd71
commit
2865fc3415
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user