mirror of
https://github.com/vercel/commerce.git
synced 2025-07-03 19:51:22 +00:00
Update comments about cart discounts
This commit is contained in:
parent
8f95d76dcd
commit
7d5a63bbf4
@ -170,7 +170,7 @@ const normalizeLineItem = (
|
||||
productId: productIdentifier.id,
|
||||
name: spreeLineItem.attributes.name,
|
||||
quantity: spreeLineItem.attributes.quantity,
|
||||
discounts: [], // TODO: Retrieve from Spree
|
||||
discounts: [], // TODO: Implement when the template starts displaying them.
|
||||
path,
|
||||
variant: normalizeVariant(spreeSuccessResponse, variant),
|
||||
options,
|
||||
@ -198,8 +198,7 @@ const normalizeCart = (
|
||||
totalPrice: parseFloat(spreeCart.attributes.total),
|
||||
customerId: spreeCart.attributes.token,
|
||||
email: spreeCart.attributes.email,
|
||||
discounts: [],
|
||||
// discounts: [{value: number}] // TODO: Retrieve from Spree
|
||||
discounts: [], // TODO: Implement when the template starts displaying them.
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user