Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
marcusmolchany committed Feb 18, 2022
1 parent ece1523 commit be49bfb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/fetchers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,8 @@ export const getAllPartyAddressesWithContributions = async (): Promise<

const partiesWithContributions = zr.party.filter((party) => {
const partyContributions = party.party_contributions;

// filter out parties with no contributions
if (!(partyContributions && partyContributions.length)) {
return false;
}
Expand Down

0 comments on commit be49bfb

Please sign in to comment.