Skip to content

Commit

Permalink
Merge pull request #4956 from thematters/fix/campaign-filter-viewer
Browse files Browse the repository at this point in the history
[hotfix] fix(campaign): dedup participant list if total count is less than maxAvatarCount
  • Loading branch information
gitwoz authored Nov 25, 2024
2 parents e7a667d + 144cb17 commit 6e5b368
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/CampaignDetail/SideParticipants/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ const SideParticipants = ({ campaign }: SideParticipantsProps) => {
}

if (edges.length <= maxAvatarCount) {
return edges
return edges.filter(({ node }) => node.id !== viewer.id)
}

const withAvatars = edges.filter(
Expand Down

0 comments on commit 6e5b368

Please sign in to comment.