Skip to content

Commit d32eb79

Browse files
committed
capture at least the name or image, but omit if both are missing
1 parent 4d0c924 commit d32eb79

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

apps/site/next-data/generators/supportersData.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ async function fetchOpenCollectiveData() {
9494

9595
const members = payload
9696
.filter(({ role, isActive }) => role === 'BACKER' && isActive)
97+
.filter(({ name, image }) => name || image) // Ensure we have a name or image for the supporter
9798
.sort((a, b) => b.totalAmountDonated - a.totalAmountDonated)
9899
.map(({ name, image, profile }) => ({
99100
name,

0 commit comments

Comments
 (0)