Fix fulfillment page error (#2064)

This commit is contained in:
Michał Droń 2022-05-30 11:42:29 +02:00 committed by GitHub
parent 993a99ff07
commit 88bfffb2b4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -36,7 +36,7 @@ export const OrderFulfillLine: React.FC<OrderFulfillLineProps> = props => {
const isPreorder = !!line.variant?.preorder; const isPreorder = !!line.variant?.preorder;
const lineFormQuantity = isPreorder const lineFormQuantity = isPreorder
? 0 ? 0
: formsetData[lineIndex].value?.[0]?.quantity; : formsetData[lineIndex]?.value?.[0]?.quantity;
const overfulfill = lineFormQuantity > line.quantityToFulfill; const overfulfill = lineFormQuantity > line.quantityToFulfill;
const warehouseStock = getWarehouseStock(line?.variant?.stocks, warehouseId); const warehouseStock = getWarehouseStock(line?.variant?.stocks, warehouseId);