Skip to content

Commit ea7058b

Browse files
authored
Merge pull request #1881 from IFRCGo/fix/disable-ops-update-for-old-imminent
fix(dref): disable ops update for old imminents
2 parents 83f88ea + 75bf525 commit ea7058b

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/eight-grapes-march.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 logic to disable ops update for old imminents

app/src/views/AccountMyFormsDref/ActiveDrefTable/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ function ActiveDrefTable(props: Props) {
243243
// NOTE: Adding this to disable updates just for the old imminents
244244
&& (item.type_of_dref !== DREF_TYPE_IMMINENT
245245
|| (item.type_of_dref === DREF_TYPE_IMMINENT
246-
&& isDefined(is_dref_imminent_v2))
246+
&& !!is_dref_imminent_v2)
247247
);
248248

249249
const canCreateFinalReport = !has_final_report

0 commit comments

Comments
 (0)