Skip to content

Commit 89ff76e

Browse files
authored
Merge pull request #428 from IFRCGo/fix/dref-account-page
Add optional chaining to country_details in dref account page
2 parents c5a9b75 + d93aa2e commit 89ff76e

File tree

1 file changed

+1
-1
lines changed
  • src/views/AccountMyFormsDref/ActiveDrefTable

1 file changed

+1
-1
lines changed

src/views/AccountMyFormsDref/ActiveDrefTable/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ function ActiveDrefTable(props: Props) {
234234
|| (has_ops_update && unpublished_op_update_count === 0)
235235
);
236236

237-
const drefRegion = country_details.region;
237+
const drefRegion = country_details?.region;
238238
const isRegionCoordinator = isDefined(drefRegion)
239239
? userRegionCoordinatorMap?.[drefRegion] ?? false
240240
: false;

0 commit comments

Comments
 (0)