From 0f5d28c32a17a3572abadaa59990f2a2e5e017e2 Mon Sep 17 00:00:00 2001 From: Matthew Russell Date: Tue, 9 Jan 2024 15:34:29 -0500 Subject: [PATCH] fix: incorrect member count --- apps/trading/client-pages/team/team.tsx | 123 ++++++++++++------------ 1 file changed, 62 insertions(+), 61 deletions(-) diff --git a/apps/trading/client-pages/team/team.tsx b/apps/trading/client-pages/team/team.tsx index a3b92db61..97ce7becf 100644 --- a/apps/trading/client-pages/team/team.tsx +++ b/apps/trading/client-pages/team/team.tsx @@ -107,7 +107,6 @@ export const TeamPage = ({ /> - {games && games.length ? ( @@ -124,7 +123,9 @@ export const TeamPage = ({ active={!showGames} onClick={() => setShowGames(false)} > - {t('Members ({{count}})', { count: games ? games.length : 0 })} + {t('Members ({{count}})', { + count: members ? members.length : 0, + })} {showGames ? : } @@ -134,21 +135,6 @@ export const TeamPage = ({ ); }; -const ToggleButton = ({ - active, - ...props -}: ButtonHTMLAttributes & { active: boolean }) => { - return ( -