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();
|
||||
|
||||
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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user