From 00fbe711e5cd7602268b1fbfd4ecb171dd857bc6 Mon Sep 17 00:00:00 2001 From: James Grugett Date: Thu, 10 Feb 2022 14:51:14 -0600 Subject: [PATCH] Only show leaderboard scores that round up to M$ 1 or more --- web/pages/fold/[...slugs]/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/pages/fold/[...slugs]/index.tsx b/web/pages/fold/[...slugs]/index.tsx index b086efe6..f6d53c2c 100644 --- a/web/pages/fold/[...slugs]/index.tsx +++ b/web/pages/fold/[...slugs]/index.tsx @@ -116,7 +116,7 @@ async function toTopUsers(userScores: { [userId: string]: number }) { const topUserPairs = _.take( _.sortBy(Object.entries(userScores), ([_, score]) => -1 * score), 10 - ).filter(([_, score]) => score > 0) + ).filter(([_, score]) => score >= 0.5) const topUsers = await Promise.all( topUserPairs.map(([userId]) => getUser(userId))