on master help sign in
index: flatten assignee arrays for counting unique contributors
commitd6e25b375098510a48e409175bafeefebd4f142c authorMatilde Park <matilde.park@urbit.org> dateMon 29 Aug 2022, 20:53 (4 years ago) parent6603e90
1 file changed+2−1
pages/index.js+2−1
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 &&