Skip to content

Commit

Permalink
Fix copy field from field report in DREF
Browse files Browse the repository at this point in the history
  • Loading branch information
puranban committed Dec 5, 2023
1 parent c71f215 commit 8804f0e
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,9 @@ function CopyFieldReportSection(props: Props) {
);
}));

const government_assistance = value?.government_requested_assistance
?? fieldReportResponse.request_assistance;
// NOTE: default value is false initially
const government_assistance = fieldReportResponse.request_assistance
?? value?.government_requested_assistance;

const num_affected = value?.num_affected
?? fieldReportResponse.num_affected
Expand Down

0 comments on commit 8804f0e

Please sign in to comment.