From 144cb1734a40628ab3e33c1fbc1e31c684156a50 Mon Sep 17 00:00:00 2001 From: gitwoz <177856586+gitwoz@users.noreply.github.com> Date: Mon, 25 Nov 2024 16:20:27 +0700 Subject: [PATCH] fix(campaign): dedup participant list if total count is less than maxAvatarCount --- src/views/CampaignDetail/SideParticipants/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/CampaignDetail/SideParticipants/index.tsx b/src/views/CampaignDetail/SideParticipants/index.tsx index 5181248209..af0c3037ba 100644 --- a/src/views/CampaignDetail/SideParticipants/index.tsx +++ b/src/views/CampaignDetail/SideParticipants/index.tsx @@ -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(