chore(order): preview removed items (#8680)
This commit is contained in:
committed by
GitHub
parent
430d9a38c4
commit
99eca64c20
@@ -182,7 +182,9 @@ function getLineItemTotals(
|
||||
totals.original_total = new BigNumber(originalTotal)
|
||||
}
|
||||
|
||||
const totalPerUnit = MathBN.div(totals.total, item.quantity)
|
||||
const div = MathBN.eq(item.quantity, 0) ? 1 : item.quantity
|
||||
const totalPerUnit = MathBN.div(totals.total, div)
|
||||
|
||||
const optionalFields = {
|
||||
...(context.extraQuantityFields ?? {}),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user