Skip to content

Commit

Permalink
De dup signups
Browse files Browse the repository at this point in the history
Sometimes they are filled with dups, :(
  • Loading branch information
mayfield committed Dec 16, 2024
1 parent 9aa7fb1 commit 5641513
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pages/src/events.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,8 @@ async function render() {
}
el.classList.toggle('signedup', !!sg.signedUp);
el.classList.toggle('can-signup', !event.signedUp);
entrants = await common.rpc.getEventSubgroupEntrants(sg.id);
const hasDupsEntrants = await common.rpc.getEventSubgroupEntrants(sg.id);
entrants = Array.from((new Map(hasDupsEntrants.map(x => [x.id, x]))).values());
entrants.sort((a, b) =>
a.athlete?.lastName.toLowerCase() < b.athlete?.lastName.toLowerCase() ? -1 : 1);
entrants.sort((a, b) =>
Expand Down

0 comments on commit 5641513

Please sign in to comment.