From 737a880ee01bfe5c05c39ec03185a680a51cbce3 Mon Sep 17 00:00:00 2001 From: Rafi Zadanly Date: Thu, 29 Dec 2022 15:23:30 +0700 Subject: Checkout detail --- src/pages/shop/cart.js | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'src/pages/shop/cart.js') diff --git a/src/pages/shop/cart.js b/src/pages/shop/cart.js index 6fe079b3..2ab0aaf5 100644 --- a/src/pages/shop/cart.js +++ b/src/pages/shop/cart.js @@ -197,9 +197,7 @@ export default function Cart() { -
- {/* [Start] Product List */} -
+
{products.map((product, index) => (
@@ -223,13 +221,12 @@ export default function Cart() {

{currencyFormat(product.price.price_discount)}

- {product.price.discount_percentage > 0 ? ( + {product.price.discount_percentage > 0 && ( <> {product.price.discount_percentage}%

{currencyFormat(product.price.price)}

- ) : ''} - + )}

{currencyFormat(product.quantity * product.price.price_discount)}

@@ -262,8 +259,6 @@ export default function Cart() {
))} -
- {/* [End] Product List */}
-- cgit v1.2.3