Only show leaderboard scores that round up to M$ 1 or more
This commit is contained in:
parent
9b50d67313
commit
00fbe711e5
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue
Block a user