From f3b45962c45569ea587aaa74c15aa7f0a8159363 Mon Sep 17 00:00:00 2001 From: Alisher Musurmonov Date: Fri, 6 Oct 2023 11:00:55 +0500 Subject: [PATCH] refactor: move logic to constant --- .../PurchaseOrder/OngoingOrderInfo/OngoingInfoForm.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/PurchaseOrder/OngoingOrderInfo/OngoingInfoForm.js b/src/components/PurchaseOrder/OngoingOrderInfo/OngoingInfoForm.js index f4b47f71d..0368b37b8 100644 --- a/src/components/PurchaseOrder/OngoingOrderInfo/OngoingInfoForm.js +++ b/src/components/PurchaseOrder/OngoingOrderInfo/OngoingInfoForm.js @@ -35,6 +35,7 @@ const OngoingInfoForm = ({ hiddenFields = {} }) => { const isSubscription = !!ongoingFormValues?.isSubscription; const isClosedNonInteractive = values.workflowStatus && isWorkflowStatusClosed(values); const isNonPendingNonInteractive = values.workflowStatus && !isWorkflowStatusIsPending(values); + const isOpenNonInteractive = values.workflowStatus && !isWorkflowStatusOpen(values); if (isClosedNonInteractive && disabled) return null; @@ -52,7 +53,7 @@ const OngoingInfoForm = ({ hiddenFields = {} }) => { @@ -81,7 +82,7 @@ const OngoingInfoForm = ({ hiddenFields = {} }) => {