From 899737f765cd77613ab2e9bac0fb82c6c1acba7e Mon Sep 17 00:00:00 2001 From: mkucmus Date: Thu, 13 Jul 2023 11:40:21 +0200 Subject: [PATCH] fix: use referencedId for item id --- lib/shopware/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/shopware/index.ts b/lib/shopware/index.ts index bb974a196..b5938c8ed 100644 --- a/lib/shopware/index.ts +++ b/lib/shopware/index.ts @@ -239,7 +239,7 @@ export async function getCart(): Promise { id: cartData.token || '', lines: cartData.lineItems?.map((lineItem) => ({ - id: lineItem.id || '', + id: lineItem.referencedId || '', quantity: lineItem.quantity, cost: { totalAmount: {