Skip to content

Commit d93aa2e

Browse files
committed
Add optional chaining to country_details in dref account page
1 parent c5a9b75 commit d93aa2e

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)