mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-20 13:32:00 +00:00
refactor(FE): Simplify conditional formatting in InventoryAdjustmentForm
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user