Skip to content

Commit

Permalink
Show collaborators
Browse files Browse the repository at this point in the history
  • Loading branch information
camilovegag committed Jun 7, 2024
1 parent fb62145 commit 0adbbd2
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ function ResultsTable({ $expanded, option, onClick, cycleId, eventId }: ResultsT
enabled: !!option.id,
});

const coauthors = optionUsers?.group?.users?.map((user) => `${user.firstName} ${user.lastName}`);
console.log('🚀 ~ ResultsTable ~ coauthors:', coauthors);

const handleCommentsClick = () => {
navigate(`/events/${eventId}/cycles/${cycleId}/options/${option.id}`);
};
Expand Down Expand Up @@ -86,6 +89,9 @@ function ResultsTable({ $expanded, option, onClick, cycleId, eventId }: ResultsT
<Body>
<Bold>Lead Author:</Bold> {optionUsers?.user?.firstName} {optionUsers?.user?.lastName}
</Body>
<Body>
<Bold>Collaborators</Bold> {coauthors}
</Body>
<Body>
<Bold>Distinct voters:</Bold> {option.distinctUsers}
</Body>
Expand Down

0 comments on commit 0adbbd2

Please sign in to comment.