diff --git a/web/components/leaderboard.tsx b/web/components/leaderboard.tsx
index 5ab792b1..eb0fdcfc 100644
--- a/web/components/leaderboard.tsx
+++ b/web/components/leaderboard.tsx
@@ -17,43 +17,47 @@ export function Leaderboard(props: {
return (
-
-
-
-
- # |
- Name |
- {columns.map((column) => (
- {column.header} |
- ))}
-
-
-
- {users.map((user, index) => (
-
- {index + 1} |
-
-
-
-
- {user.name}
-
-
- |
+ {users.length === 0 ? (
+ None yet
+ ) : (
+
+
+
+
+ # |
+ Name |
{columns.map((column) => (
- {column.renderCell(user)} |
+ {column.header} |
))}
- ))}
-
-
-
+
+
+ {users.map((user, index) => (
+
+ {index + 1} |
+
+
+
+
+ {user.name}
+
+
+ |
+ {columns.map((column) => (
+ {column.renderCell(user)} |
+ ))}
+
+ ))}
+
+
+
+ )}
)
}
diff --git a/web/pages/fold/[...slugs]/index.tsx b/web/pages/fold/[...slugs]/index.tsx
index 01bbc6b5..5820e2de 100644
--- a/web/pages/fold/[...slugs]/index.tsx
+++ b/web/pages/fold/[...slugs]/index.tsx
@@ -99,7 +99,8 @@ async function toUserScores(userScores: { [userId: string]: number }) {
const topUserPairs = _.take(
_.sortBy(Object.entries(userScores), ([_, score]) => -1 * score),
10
- )
+ ).filter(([_, score]) => score > 0)
+
const topUsers = await Promise.all(
topUserPairs.map(([userId]) => getUser(userId))
)