summaryrefslogtreecommitdiff
path: root/src-migrate/modules/cart/components/Item.tsx
diff options
context:
space:
mode:
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>
</>