From 7d5a63bbf4e34dc1d08deaa4e7e43c3f0a5e6420 Mon Sep 17 00:00:00 2001 From: tniezg Date: Thu, 19 Aug 2021 11:49:27 +0200 Subject: [PATCH] Update comments about cart discounts --- framework/spree/utils/normalize-cart.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/framework/spree/utils/normalize-cart.ts b/framework/spree/utils/normalize-cart.ts index 23cd77267..f4106a7eb 100644 --- a/framework/spree/utils/normalize-cart.ts +++ b/framework/spree/utils/normalize-cart.ts @@ -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. } }