From fb80b92d502437160e45b237b380071ab102c838 Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Mon, 22 Jan 2024 10:41:53 +0700
Subject: Update disable checkout when has product price 0 and fix filter brand

---
 src-migrate/modules/cart/components/Item.tsx | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'src-migrate/modules/cart/components/Item.tsx')

diff --git a/src-migrate/modules/cart/components/Item.tsx b/src-migrate/modules/cart/components/Item.tsx
index 08823d19..48e568e0 100644
--- a/src-migrate/modules/cart/components/Item.tsx
+++ b/src-migrate/modules/cart/components/Item.tsx
@@ -70,7 +70,8 @@ const CartItem = ({ item, editable = true }: Props) => {
               {item.cart_type === 'product' && (
                 <>
                   <div className={style.price}>
-                    Rp {formatCurrency(item.price.price)}
+                    {item.price.price > 0 && `Rp ${formatCurrency(item.price.price)}`}
+                    {item.price.price === 0 && '-'}
                   </div>
                   <div>{item.code}</div>
                 </>
-- 
cgit v1.2.3

