fix(core-flows): support 0 as a valid unit price for custom line items (#11631)
This commit is contained in:
@@ -124,7 +124,7 @@ export const addToCartWorkflow = createWorkflow(
|
||||
isCustomPrice: isDefined(item?.unit_price),
|
||||
}
|
||||
|
||||
if (variant && !input.unitPrice) {
|
||||
if (variant && !isDefined(input.unitPrice)) {
|
||||
input.unitPrice = variant.calculated_price?.calculated_amount
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user