summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIndoteknik . <andrifebriyadiputra@gmail.com>2025-06-16 16:31:44 +0700
committerIndoteknik . <andrifebriyadiputra@gmail.com>2025-06-16 16:31:44 +0700
commit6415e9c36b00c38089d2676a2e95ab7a165c99ea (patch)
treefbbdce04918f245788887d79377bc265e2415a9b
parent5754fd0a95bc72f0e97e6af2d246f4d14a45bf9f (diff)
<miqdad> fix tidak bisa checkout barang bundling
-rw-r--r--src/lib/checkout/components/SectionExpedition.jsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/checkout/components/SectionExpedition.jsx b/src/lib/checkout/components/SectionExpedition.jsx
index fdad04ce..7a02c6e9 100644
--- a/src/lib/checkout/components/SectionExpedition.jsx
+++ b/src/lib/checkout/components/SectionExpedition.jsx
@@ -17,7 +17,8 @@ import { getProductsSla } from '../api/checkoutApi';
function mappingItems(products) {
return products?.map((item) => ({
- name: item.parent.name,
+ // name: item.parent.name || item?.name || 'Unknown Product',
+ name: item?.name,
description: `${item.code} - ${item.name}`,
value: item.price.priceDiscount,
weight: item.weight * 1000,