diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2024-07-11 15:37:19 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2024-07-11 15:37:19 +0700 |
| commit | 46769b859bb56807d47053c3b99810455db12803 (patch) | |
| tree | 872127d148cecf1bdde76d9b8c39bb18fd860d99 /src-migrate/modules | |
| parent | d584d4620ff633e68fa37f98089d9056012e7b21 (diff) | |
<iman> update error code image program
Diffstat (limited to 'src-migrate/modules')
| -rw-r--r-- | src-migrate/modules/cart/components/Item.tsx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src-migrate/modules/cart/components/Item.tsx b/src-migrate/modules/cart/components/Item.tsx index a757ba37..a382279f 100644 --- a/src-migrate/modules/cart/components/Item.tsx +++ b/src-migrate/modules/cart/components/Item.tsx @@ -100,8 +100,7 @@ const CartItem = ({ item, editable = true }: Props) => { CartItem.Image = function CartItemImage({ item }: { item: CartItemProps }) { const image = item?.image || item?.parent?.image - const imageProgram = item?.image_program[0] || item?.parent?.image - + const imageProgram = item?.image_program ? item.image_program[0] : item?.parent?.image; return ( <> |
