diff --git a/web/lib/firebase/users.ts b/web/lib/firebase/users.ts index 4f618586..068d975e 100644 --- a/web/lib/firebase/users.ts +++ b/web/lib/firebase/users.ts @@ -210,14 +210,20 @@ export async function listAllUsers() { return docs.map((doc) => doc.data()) } -export function getTopTraders(period: Period) { +export async function getTopTraders(period: Period) { const topTraders = query( users, orderBy('profitCached.' + period, 'desc'), - limit(20) + limit(21) ) - return getValues(topTraders) + const topUsers = await getValues(topTraders) + return topUsers + .filter( + (user) => + user.username !== 'SalemCenter' && user.username !== 'RichardHanania' + ) + .slice(0, 20) } export function getTopCreators(period: Period) { diff --git a/web/pages/leaderboards.tsx b/web/pages/leaderboards.tsx index 3abd60af..d0453ea9 100644 --- a/web/pages/leaderboards.tsx +++ b/web/pages/leaderboards.tsx @@ -73,6 +73,7 @@ export default function Leaderboards(_props: { const LeaderboardWithPeriod = (period: Period) => { const { topTraders } = props[period] + return ( <>