Fix formatting of teamPoints calculation in GroupTable component for improved readability
All checks were successful
SteamWarCI Build successful

This commit is contained in:
2025-06-29 19:47:35 +02:00
parent bed134f8e0
commit 5457632598

View File

@ -35,10 +35,12 @@
} = $props();
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 ?? {})
.map(([teamId, points]) => ({
team: event.teams.find((t) => t.id === Number(teamId))!!,
points: points,
}))
.sort((a, b) => b.points - a.points)
);
</script>