Skip to content

Commit

Permalink
[TM-1482] Display total for socioeconomic restoration partners (#698)
Browse files Browse the repository at this point in the history
  • Loading branch information
cesarLima1 authored Nov 22, 2024
1 parent a10f903 commit c140aa5
Showing 1 changed file with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,26 @@ const HighLevelMetics: FC = () => {
</Labeled>
</When>
</ContextCondition>
<ContextCondition frameworksShow={[Framework.PPC]}>
<When
condition={
resource === "projectReport" &&
record?.direct_restoration_partners !== undefined &&
record?.indirect_restoration_partners !== undefined
}
>
<Labeled label="Total Number of Restoration Partners (allowing double-counting)" sx={inlineLabelSx}>
<NumberField
source="total_restoration_partners"
record={{
total_restoration_partners:
(record.direct_restoration_partners || 0) + (record.indirect_restoration_partners || 0)
}}
emptyText="0"
/>
</Labeled>
</When>
</ContextCondition>
</Stack>
</Box>
</Card>
Expand Down

0 comments on commit c140aa5

Please sign in to comment.