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'
|
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');
|
||||||
|
|||||||
Reference in New Issue
Block a user