Skip to content

Commit

Permalink
fix(campaign): dedup participant list if total count is less than max…
Browse files Browse the repository at this point in the history
…AvatarCount
  • Loading branch information
gitwoz committed Nov 25, 2024
1 parent e7a667d commit 144cb17
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 144cb17

Please sign in to comment.