Skip to content

Commit

Permalink
Merge pull request #4924 from thematters/fix/campaign-shuffle-avatar
Browse files Browse the repository at this point in the history
feat(campaign): skip avatar shuffling if it does not exceed the max c…
  • Loading branch information
pauljusti authored Oct 29, 2024
2 parents 29d9ea7 + 18bec85 commit f1103f0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/views/CampaignDetail/SideParticipants/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ const SideParticipants = ({ campaign }: SideParticipantsProps) => {
return []
}

if (edges.length <= maxAvatarCount) {
return edges
}

const withAvatars = edges.filter(
({ node }) => node.avatar && node.id !== viewer.id
)
Expand Down

0 comments on commit f1103f0

Please sign in to comment.