diff --git a/framework/vendure/utils/normalize.ts b/framework/vendure/utils/normalize.ts
index a3aeffd28..d81fbc2f1 100644
--- a/framework/vendure/utils/normalize.ts
+++ b/framework/vendure/utils/normalize.ts
@@ -36,7 +36,6 @@ export function normalizeFavoriteProductResult(item: Favorite) {
export function normalizeCart(order: CartFragment): Cart {
- console.log("raw rs: ", order)
return {
id: order.id.toString(),
createdAt: order.createdAt,
diff --git a/src/components/common/CartDrawer/components/ProductCartItem/ProductCartItem.tsx b/src/components/common/CartDrawer/components/ProductCartItem/ProductCartItem.tsx
index ef219d31d..57a6e2b20 100644
--- a/src/components/common/CartDrawer/components/ProductCartItem/ProductCartItem.tsx
+++ b/src/components/common/CartDrawer/components/ProductCartItem/ProductCartItem.tsx
@@ -74,7 +74,8 @@ const ProductCartItem = ({
{discounts.length > 0 && (
{/* {oldPrice} */}
- {discounts[0]}
+ {/* TODO: edit the value */}
+ {discounts[0]?.value}
)}
{variant?.price} {currency?.code}
diff --git a/src/components/modules/checkout/CheckoutBill/CheckoutBill.tsx b/src/components/modules/checkout/CheckoutBill/CheckoutBill.tsx
index 34d468f94..433df66d1 100644
--- a/src/components/modules/checkout/CheckoutBill/CheckoutBill.tsx
+++ b/src/components/modules/checkout/CheckoutBill/CheckoutBill.tsx
@@ -1,5 +1,5 @@
import { Cart } from '@commerce/types/cart'
-import React, { useMemo } from 'react'
+import React from 'react'
import { CardItemCheckout } from '../../../common'
import s from './CheckoutBill.module.scss'
import FormPromotionCode from './FormPromotionCode/FormPromotionCode'
@@ -10,8 +10,7 @@ interface CheckoutBillProps {
}
const CheckoutBill = ({ data }: CheckoutBillProps) => {
- console.log("data here***: ", data)
-
+ // console.log("data here***: ", data)
return (
@@ -25,7 +24,6 @@ const CheckoutBill = ({ data }: CheckoutBillProps) => {
- TODO: here
Discount {(data?.discounts?.length || 0) > 0 && `(${data?.discounts?.map(item => item.description).join(",")})`}
{data?.totalDiscount} {data?.currency?.code}
diff --git a/src/components/modules/checkout/CheckoutPage/CheckoutPage.tsx b/src/components/modules/checkout/CheckoutPage/CheckoutPage.tsx
index 05bc176a7..fcec64922 100644
--- a/src/components/modules/checkout/CheckoutPage/CheckoutPage.tsx
+++ b/src/components/modules/checkout/CheckoutPage/CheckoutPage.tsx
@@ -33,7 +33,7 @@ const CheckoutPage = ({ }: CheckoutPageProps) => {
Your Cart({CHECKOUT_BILL_DATA.length})
-
+