Update comments about cart discounts

This commit is contained in:
tniezg 2021-08-19 11:49:27 +02:00
parent 8f95d76dcd
commit 7d5a63bbf4

View File

@ -170,7 +170,7 @@ const normalizeLineItem = (
productId: productIdentifier.id, productId: productIdentifier.id,
name: spreeLineItem.attributes.name, name: spreeLineItem.attributes.name,
quantity: spreeLineItem.attributes.quantity, quantity: spreeLineItem.attributes.quantity,
discounts: [], // TODO: Retrieve from Spree discounts: [], // TODO: Implement when the template starts displaying them.
path, path,
variant: normalizeVariant(spreeSuccessResponse, variant), variant: normalizeVariant(spreeSuccessResponse, variant),
options, options,
@ -198,8 +198,7 @@ const normalizeCart = (
totalPrice: parseFloat(spreeCart.attributes.total), totalPrice: parseFloat(spreeCart.attributes.total),
customerId: spreeCart.attributes.token, customerId: spreeCart.attributes.token,
email: spreeCart.attributes.email, email: spreeCart.attributes.email,
discounts: [], discounts: [], // TODO: Implement when the template starts displaying them.
// discounts: [{value: number}] // TODO: Retrieve from Spree
} }
} }