diff --git a/src/lib/components/Sidebar.svelte b/src/lib/components/Sidebar.svelte index 596328d..eff6861 100644 --- a/src/lib/components/Sidebar.svelte +++ b/src/lib/components/Sidebar.svelte @@ -110,7 +110,7 @@ { href: '/mappools', label: 'Mappools', icon: 'mappools' }, // { href: '/teams', label: 'Teams', icon: 'teams' }, { href: '/leaderboard', label: 'Leaderboard', icon: 'leaderboard' }, - ] as item} + ] as item (item.href)} - {#each [...game.scores].sort((a: any, b: any) => { - if (config.scoringType === 'accuracy') return b.accuracy - a.accuracy; - if (config.scoringType === 'combo') return b.maxCombo - a.maxCombo; - if (config.scoringType === 'pp') return (b.pp ?? 0) - (a.pp ?? 0); - return b.score - a.score; - }) as s} + {#each game.scores as s} {@const username = playerNames[s.player?.userId]}
{username ?? s.player?.userId ?? '?'}