Skip to content

Commit

Permalink
fix tournaments slice in players list
Browse files Browse the repository at this point in the history
  • Loading branch information
merklejerk committed Jun 19, 2024
1 parent 2c8f7c4 commit 2b4245a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/(app)/players/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
rankings: t.rankings.sort((a: any, b: any) => b.score - a.score),
}))
.sort((a: any, b: any) => a.time - b.time)
.slice(0, 12)
.slice(-12)
.map((r: any) => r.rankings),
);
const players_ = playersResult.map((p: any, i: number) => ({
Expand Down

0 comments on commit 2b4245a

Please sign in to comment.