From 329a2fedd924af545dd2545578e90d01e45de6e2 Mon Sep 17 00:00:00 2001 From: Lyn <0xlynett@proton.me> Date: Wed, 11 Sep 2024 20:34:19 +0000 Subject: [PATCH] filter out zero --- src/components/Leaderboard.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/Leaderboard.tsx b/src/components/Leaderboard.tsx index 531fd70..5a5081f 100644 --- a/src/components/Leaderboard.tsx +++ b/src/components/Leaderboard.tsx @@ -10,6 +10,7 @@ export interface LeaderboardProps { export default function Leaderboard({ list }: LeaderboardProps) { return list ? list + .filter((a) => a.xp != 0) .sort((a, b) => b.xp - a.xp) .map(({ username, xp }, i) => { return (