refactor(FE): Simplify conditional formatting in InventoryAdjustmentForm

This commit is contained in:
rstubryan
2026-02-26 15:12:19 +07:00
parent c926a81756
commit a4d5cbb117
@@ -288,10 +288,7 @@ const InventoryAdjustmentForm = ({
subtype === 'MARKETING_OUT' subtype === 'MARKETING_OUT'
) { ) {
setQuantityLabel('Kurangi Stok'); setQuantityLabel('Kurangi Stok');
} else if ( } else if (subtype === 'RECORDING_EGG_IN' || subtype === 'PURCHASE_IN') {
subtype === 'RECORDING_EGG_IN' ||
subtype === 'PURCHASE_IN'
) {
setQuantityLabel('Tambah Stok'); setQuantityLabel('Tambah Stok');
} else { } else {
setQuantityLabel('Kuantitas'); setQuantityLabel('Kuantitas');