diff --git a/components/cart/delete-item-button.tsx b/components/cart/delete-item-button.tsx index c0854727b..242ecae9b 100644 --- a/components/cart/delete-item-button.tsx +++ b/components/cart/delete-item-button.tsx @@ -39,7 +39,7 @@ export function DeleteItemButton({ item }: { item: CartItem }) { const { id: itemId, coreCharge } = item; const actionWithVariant = formAction.bind(null, [ itemId, - ...(coreCharge?.lineId ? [coreCharge.lineId] : []) + ...(coreCharge?.id ? [coreCharge.id] : []) ]); return ( diff --git a/components/cart/edit-item-quantity-button.tsx b/components/cart/edit-item-quantity-button.tsx index 007e33f0c..de0745c4b 100644 --- a/components/cart/edit-item-quantity-button.tsx +++ b/components/cart/edit-item-quantity-button.tsx @@ -48,9 +48,9 @@ export function EditItemQuantityButton({ item, type }: { item: CartItem; type: ' } ]; - if (item.coreCharge?.lineId) { + if (item.coreCharge) { payload.push({ - lineId: item.coreCharge.lineId, + lineId: item.coreCharge.id, variantId: item.coreCharge.id, quantity });