From 60d436b5b93d4b71bc677428003fa2eebac1ce49 Mon Sep 17 00:00:00 2001 From: Joao Ramos Date: Sat, 13 Jul 2024 17:25:10 +0100 Subject: [PATCH] Fixed wrong count --- src/dashboards/MasterCorporate.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/dashboards/MasterCorporate.tsx b/src/dashboards/MasterCorporate.tsx index 36e93175..95736597 100644 --- a/src/dashboards/MasterCorporate.tsx +++ b/src/dashboards/MasterCorporate.tsx @@ -168,9 +168,6 @@ export default function MasterCorporateDashboard({ user }: Props) { }; const GroupsList = () => { - const filter = (x: Group) => - x.admin === user.id || x.participants.includes(user.id); - return ( <>
@@ -182,7 +179,7 @@ export default function MasterCorporateDashboard({ user }: Props) { Back

- Groups ({groups.filter(filter).length}) + Groups ({groups.length})