@@ -131,6 +131,7 @@ export function Component() {
131131 ( appeal ) => appeal . amount_requested ,
132132 ) ,
133133 ) ;
134+
134135 const funding = sumSafe (
135136 emergencyResponse ?. appeals . map (
136137 ( appeal ) => appeal . amount_funded ,
@@ -252,27 +253,34 @@ export function Component() {
252253 infoContainerClassName = { styles . keyFigureList }
253254 info = { (
254255 < >
255- < KeyFigure
256- icon = { < TargetedPopulationIcon /> }
257- className = { styles . keyFigure }
258- value = { peopleTargeted }
259- compactValue
260- label = { strings . emergencyPeopleTargetedLabel }
261- />
262- < KeyFigure
263- icon = { < FundingIcon /> }
264- className = { styles . keyFigure }
265- value = { fundingRequirements }
266- compactValue
267- label = { strings . emergencyFundingRequirementsLabel }
268- />
269- < KeyFigure
270- icon = { < FundingCoverageIcon /> }
271- className = { styles . keyFigure }
272- value = { funding }
273- compactValue
274- label = { strings . emergencyFundingLabel }
275- />
256+ { isDefined ( peopleTargeted ) && (
257+ < KeyFigure
258+ icon = { < TargetedPopulationIcon /> }
259+ className = { styles . keyFigure }
260+ value = { peopleTargeted }
261+ compactValue
262+ label = { strings . emergencyPeopleTargetedLabel }
263+ />
264+ ) }
265+ { isDefined ( fundingRequirements ) && (
266+ < KeyFigure
267+ icon = { < FundingIcon /> }
268+ className = { styles . keyFigure }
269+ value = { fundingRequirements }
270+ compactValue
271+ label = { strings . emergencyFundingRequirementsLabel }
272+ />
273+
274+ ) }
275+ { isDefined ( funding ) && (
276+ < KeyFigure
277+ icon = { < FundingCoverageIcon /> }
278+ className = { styles . keyFigure }
279+ value = { funding }
280+ compactValue
281+ label = { strings . emergencyFundingLabel }
282+ />
283+ ) }
276284 </ >
277285 ) }
278286 contentOriginalLanguage = { emergencyResponse ?. translation_module_original_language }
0 commit comments