Merge pull request #1778 from urbit/mp/flatten-assignees
index: flatten assignee arrays for counting unique contributors
commit663a4d35c03e3f93d7aaeb2dff05e4a9bd7c5baa
authorGordon <gordon.cieplak@urbit.org>
dateTue 30 Aug 2022, 13:44 (4 years ago)
parent6603e90d6e25b3
pages/index.js+2−1
@@ -368,7 +368,8 @@ export async function getStaticProps() {
368368 0
369369 )
370370 ),
371− contributors: [...new Set(...[grants.map((e) => e.extra.assignee)])].length,
371+ contributors: [...new Set(...[grants.map((e) => e.extra.assignee).flat()])]
372+ .length,
372373 active: grants.filter(
373374 (e) =>
374375 !e.extra.canceled &&