Skip to content

Commit

Permalink
Show research output
Browse files Browse the repository at this point in the history
  • Loading branch information
camilovegag committed Jun 7, 2024
1 parent 5154e99 commit d1eff26
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,13 @@ function ResultsTable({ $expanded, option, onClick, cycleId, eventId }: ResultsT
enabled: !!optionUsers?.registrationId,
});

console.log('🚀 ~ ResultsTable ~ registrationFields:', registrationFields);
console.log('🚀 ~ ResultsTable ~ registrationData:', registrationData);
const researchOutputField = registrationFields?.find(
(field) => field.name === 'Select research output:',
);

const researchOutputValue = registrationData?.find(
(data) => data.registrationFieldId === researchOutputField?.id,
)?.value;

const collaborators = optionUsers?.group?.users
?.filter(
Expand Down Expand Up @@ -103,6 +108,9 @@ function ResultsTable({ $expanded, option, onClick, cycleId, eventId }: ResultsT
<Body>{option.allocatedHearts}</Body>
<Body>{formattedQuadraticScore}</Body>
<Body>{formattedPluralityScore}</Body>
<Body>
<Bold>Research Output:</Bold> {researchOutputValue}
</Body>
{option.allocatedFunding !== null && <Body>{option.allocatedFunding} ARB</Body>}
<FlexColumn className="description">
<Body>{option.optionSubTitle}</Body>
Expand Down

0 comments on commit d1eff26

Please sign in to comment.