Fix formatting of teamPoints calculation in GroupTable component for improved readability
All checks were successful
SteamWarCI Build successful
All checks were successful
SteamWarCI Build successful
This commit is contained in:
@ -35,10 +35,12 @@
|
|||||||
} = $props();
|
} = $props();
|
||||||
|
|
||||||
let teamPoints = $derived(
|
let teamPoints = $derived(
|
||||||
Object.entries(event.groups.find((g) => g.id === group)?.points ?? {}).map(([teamId, points]) => ({
|
Object.entries(event.groups.find((g) => g.id === group)?.points ?? {})
|
||||||
team: event.teams.find((t) => t.id === Number(teamId))!!,
|
.map(([teamId, points]) => ({
|
||||||
points: points,
|
team: event.teams.find((t) => t.id === Number(teamId))!!,
|
||||||
}))
|
points: points,
|
||||||
|
}))
|
||||||
|
.sort((a, b) => b.points - a.points)
|
||||||
);
|
);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user