From 4c32db2d5aa7237a1b622dbaa3ec417d7ae7ddfc Mon Sep 17 00:00:00 2001 From: Herrera Date: Tue, 16 Jul 2024 15:19:53 -0700 Subject: [PATCH] PSP-8896 : FT:AcquisitionFile:Requisition: System generates warning message when user edits any other filed in the final requisition other than status --- .../compensation/update/UpdateCompensationRequisitionForm.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/frontend/src/features/mapSideBar/acquisition/tabs/compensation/update/UpdateCompensationRequisitionForm.tsx b/source/frontend/src/features/mapSideBar/acquisition/tabs/compensation/update/UpdateCompensationRequisitionForm.tsx index 4c7d42bc2f..dc9e459770 100644 --- a/source/frontend/src/features/mapSideBar/acquisition/tabs/compensation/update/UpdateCompensationRequisitionForm.tsx +++ b/source/frontend/src/features/mapSideBar/acquisition/tabs/compensation/update/UpdateCompensationRequisitionForm.tsx @@ -120,7 +120,7 @@ const UpdateCompensationRequisitionForm: React.FC { - if (values.status === 'final') { + if (initialValues.status !== 'final' && values.status === 'final') { setShowModal(true); } else { await onSave(values);