From a4d5cbb11793a18cd711624b5b28321e028d560f Mon Sep 17 00:00:00 2001 From: rstubryan Date: Thu, 26 Feb 2026 15:12:19 +0700 Subject: [PATCH] refactor(FE): Simplify conditional formatting in InventoryAdjustmentForm --- .../inventory/adjustment/form/InventoryAdjustmentForm.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/components/pages/inventory/adjustment/form/InventoryAdjustmentForm.tsx b/src/components/pages/inventory/adjustment/form/InventoryAdjustmentForm.tsx index d67d19d0..b94461c7 100644 --- a/src/components/pages/inventory/adjustment/form/InventoryAdjustmentForm.tsx +++ b/src/components/pages/inventory/adjustment/form/InventoryAdjustmentForm.tsx @@ -288,10 +288,7 @@ const InventoryAdjustmentForm = ({ subtype === 'MARKETING_OUT' ) { setQuantityLabel('Kurangi Stok'); - } else if ( - subtype === 'RECORDING_EGG_IN' || - subtype === 'PURCHASE_IN' - ) { + } else if (subtype === 'RECORDING_EGG_IN' || subtype === 'PURCHASE_IN') { setQuantityLabel('Tambah Stok'); } else { setQuantityLabel('Kuantitas');