Skip to content

Commit 8090b9a

Browse files
committed
fix(dref-export): other action section visibility condition
1 parent 7c3a40d commit 8090b9a

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.changeset/great-pillows-clean.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"go-web-app": patch
3+
---
4+
5+
Fix other action section visibility condition in DREF export

app/src/views/DrefApplicationExport/index.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -336,11 +336,10 @@ export function Component() {
336336
const majorCoordinationMechanismDefined = isDefined(
337337
drefResponse?.major_coordination_mechanism?.trim(),
338338
);
339-
const showOtherActorsActionsSection = (governmentRequestedAssistanceDefined
340-
&& isDefined(drefResponse)
341-
&& drefResponse?.type_of_dref !== DREF_TYPE_IMMINENT)
339+
const showOtherActorsActionsSection = drefResponse?.type_of_dref !== DREF_TYPE_IMMINENT
342340
&& (
343-
nationalAuthoritiesDefined
341+
governmentRequestedAssistanceDefined
342+
|| nationalAuthoritiesDefined
344343
|| unOrOtherActorDefined
345344
|| majorCoordinationMechanismDefined
346345
);

0 commit comments

Comments
 (0)