mirror of
https://github.com/vercel/commerce.git
synced 2025-07-27 04:01:23 +00:00
♻️ enhan: normalize shippingLine price
:%s
This commit is contained in:
@@ -95,7 +95,7 @@ export function normalizeCartForCheckout(order: CartFragment): CartCheckout {
|
||||
phoneNumber: order.shippingAddress?.phoneNumber || '',
|
||||
},
|
||||
shippingLine: {
|
||||
priceWithTax: order.shippingLines[0].priceWithTax,
|
||||
priceWithTax: order.shippingLines[0].priceWithTax / 100,
|
||||
shippingMethod: order.shippingLines[0].shippingMethod as ShippingMethod
|
||||
},
|
||||
totalDiscount: order.discounts?.reduce((total, item) => total + item.amountWithTax, 0) / 100 || 0,
|
||||
|
Reference in New Issue
Block a user