From 6aa5e4b9758b4c6146f32faa1880b57329421caf Mon Sep 17 00:00:00 2001 From: Josh Taylor Date: Wed, 18 Sep 2024 21:14:28 -0600 Subject: [PATCH] quick fix --- src/components/Leaderboard.tsx | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/components/Leaderboard.tsx b/src/components/Leaderboard.tsx index 0132d26..da590a7 100644 --- a/src/components/Leaderboard.tsx +++ b/src/components/Leaderboard.tsx @@ -155,6 +155,7 @@ export function Leaderboard() { .filter( (u) => !hasAffiliation || + u.user?.id === user?.uid || !!( u.user.affiliation && leaderboard @@ -169,15 +170,6 @@ export function Leaderboard() { userStats={u} rank={i + 1} isMe={u.user?.id === user?.uid} - isAffiliated={ - !hasAffiliation || - !!( - u.user.affiliation && - leaderboard - .toLowerCase() - .startsWith(u.user.affiliation.toLowerCase()) - ) - } /> ))}