Skip to content

Commit a042c42

Browse files
committed
Handle undefined name field in country preparedness
1 parent b0a4c33 commit a042c42

File tree

2 files changed

+2
-2
lines changed
  • app/src/views/CountryPreparedness

2 files changed

+2
-2
lines changed

app/src/views/CountryPreparedness/PrivateCountryPreparedness/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ function PrivateCountryPreparedness() {
497497
/>
498498
<TextOutput
499499
label={strings.typeOfAssessmentLabel}
500-
value={perOverview?.type_of_assessment.name}
500+
value={perOverview?.type_of_assessment?.name}
501501
strongValue
502502
/>
503503
<TextOutput

app/src/views/CountryPreparedness/PublicCountryPreparedness/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ function PublicCountryPreparedness() {
204204
/>
205205
<TextOutput
206206
label={strings.publicTypeOfAssessmentLabel}
207-
value={perStats?.type_of_assessment.name}
207+
value={perStats?.type_of_assessment?.name}
208208
strongValue
209209
/>
210210
<TextOutput

0 commit comments

Comments
 (0)