Skip to content

Commit

Permalink
Merge pull request #4774 from thematters/fix/prod-participants
Browse files Browse the repository at this point in the history
[hotfix] fix(campaign): fix dup participants on mobile
  • Loading branch information
robertu7 authored Aug 26, 2024
2 parents 3084530 + f2872f1 commit a35e6fa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/views/CampaignDetail/InfoHeader/Participants/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ const Participants = ({
/>
<section className={styles.avatars}>
{isViewerApplySucceeded && <Avatar user={viewer} size={20} />}
{edges?.map(({ node }, i) => (
<Avatar key={i} user={node} size={20} />
))}
{edges
?.filter((u) => u.node.id !== viewer.id)
.map(({ node }, i) => <Avatar key={i} user={node} size={20} />)}
</section>
</section>
)}
Expand Down

0 comments on commit a35e6fa

Please sign in to comment.