From 115938744c2700fc7deea148600a32699d23c17a Mon Sep 17 00:00:00 2001 From: Jabar Jeremy <24471994+jabahum@users.noreply.github.com> Date: Mon, 8 Jan 2024 08:40:23 +0300 Subject: [PATCH] fix : fix adding new stock operation bug (#52) --- src/stock-operations/stock-operation.utils.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stock-operations/stock-operation.utils.tsx b/src/stock-operations/stock-operation.utils.tsx index 084d95fe..8d9f11e0 100644 --- a/src/stock-operations/stock-operation.utils.tsx +++ b/src/stock-operations/stock-operation.utils.tsx @@ -75,7 +75,7 @@ export const launchAddOrEditDialog = ( isEditing={isEditing} operation={operation} canEdit={ - isEditing ? (stockOperation.status === "NEW" ? true : false) : false + isEditing ? (stockOperation.status === "NEW" ? true : false) : true } /> );