summaryrefslogtreecommitdiff
path: root/src-migrate/modules/cart/components/Item.tsx
diff options
context:
space:
mode:
authorRafi Zadanly <zadanlyr@gmail.com>2024-01-22 10:41:53 +0700
committerRafi Zadanly <zadanlyr@gmail.com>2024-01-22 10:41:53 +0700
commitfb80b92d502437160e45b237b380071ab102c838 (patch)
tree7af89af778f0038dbd8f984d360d009c700c6c71 /src-migrate/modules/cart/components/Item.tsx
parente49eba371229a643588d49d7ef408b6ef9469d53 (diff)
Update disable checkout when has product price 0 and fix filter brand
Diffstat (limited to 'src-migrate/modules/cart/components/Item.tsx')
-rw-r--r--src-migrate/modules/cart/components/Item.tsx3
1 files changed, 2 insertions, 1 deletions
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>
</>