From 0adbbd2a770d731e1f095e23f4042877ecd24192 Mon Sep 17 00:00:00 2001 From: camilovegag Date: Thu, 6 Jun 2024 22:13:21 -0500 Subject: [PATCH] Show collaborators --- .../src/components/tables/results-table/ResultsTable.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/berlin/src/components/tables/results-table/ResultsTable.tsx b/packages/berlin/src/components/tables/results-table/ResultsTable.tsx index 00d0eb4b..5634bdac 100644 --- a/packages/berlin/src/components/tables/results-table/ResultsTable.tsx +++ b/packages/berlin/src/components/tables/results-table/ResultsTable.tsx @@ -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}`); }; @@ -86,6 +89,9 @@ function ResultsTable({ $expanded, option, onClick, cycleId, eventId }: ResultsT Lead Author: {optionUsers?.user?.firstName} {optionUsers?.user?.lastName} + + Collaborators {coauthors} + Distinct voters: {option.distinctUsers}