From 4d3dcdaf72f56221c2587aa7e0f7da1ca065ca10 Mon Sep 17 00:00:00 2001 From: Ian Philips Date: Fri, 2 Sep 2022 16:30:28 -0600 Subject: [PATCH] Add back in numMembers --- web/pages/tournaments/index.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/web/pages/tournaments/index.tsx b/web/pages/tournaments/index.tsx index 262e8b53..0817d562 100644 --- a/web/pages/tournaments/index.tsx +++ b/web/pages/tournaments/index.tsx @@ -122,9 +122,7 @@ export async function getStaticProps() { const markets = Object.fromEntries(groups.map((g, i) => [g.id, contracts[i]])) const groupMap = keyBy(groups, 'id') - // TODO: get groupMember documents and count their length - // const numPeople = mapValues(groupMap, (g) => g?.memberIds.length) - const numPeople = 100 + const numPeople = mapValues(groupMap, (g) => g?.numMembers) const slugs = mapValues(groupMap, 'slug') return { props: { markets, numPeople, slugs }, revalidate: 60 * 10 }