fix: Correct sorting method for group points in GroupDisplay component
All checks were successful
SteamWarCI Build successful
All checks were successful
SteamWarCI Build successful
This commit is contained in:
@@ -49,7 +49,7 @@
|
|||||||
<div>
|
<div>
|
||||||
<EventCard title={group.name}>
|
<EventCard title={group.name}>
|
||||||
<EventCardOutline>
|
<EventCardOutline>
|
||||||
{#each Object.entries(group.points ?? {}).toSorted((v1, v2) => v2[1] - v1[1]) as points}
|
{#each Object.entries(group.points ?? {}).sort((v1, v2) => v2[1] - v1[1]) as points}
|
||||||
{@const [teamId, point] = points}
|
{@const [teamId, point] = points}
|
||||||
{@const team = event.teams.find((t) => t.id.toString() === teamId)!!}
|
{@const team = event.teams.find((t) => t.id.toString() === teamId)!!}
|
||||||
<EventTeamChip {team} score={point.toString()} />
|
<EventTeamChip {team} score={point.toString()} />
|
||||||
|
|||||||
Reference in New Issue
Block a user