fix cards
This commit is contained in:
@@ -124,7 +124,7 @@ export default function CartMobileTabletLayout({
|
||||
{items.map((item, index) => (
|
||||
<ProductChoicesCard
|
||||
key={index}
|
||||
product={item}
|
||||
product={{ ...item, type: "CartItem" }}
|
||||
addDividerAfter={index !== items.length - 1}
|
||||
/>
|
||||
))}
|
||||
|
||||
@@ -30,7 +30,7 @@ export default function OrderDetails() {
|
||||
{orderDetails?.orderItems.map((item, index) => (
|
||||
<ProductChoicesCard
|
||||
key={index}
|
||||
product={item}
|
||||
product={{ ...item, type: "OrderItem" }}
|
||||
addDividerAfter={index !== orderDetails?.orderItems.length - 1}
|
||||
/>
|
||||
))}
|
||||
|
||||
Reference in New Issue
Block a user