mirror of
https://github.com/vercel/commerce.git
synced 2025-05-15 05:56:59 +00:00
fix: use referencedId for item id
This commit is contained in:
parent
85e0584782
commit
d24146d45e
@ -282,6 +282,7 @@ export async function getCart(): Promise<Cart> {
|
||||
cartData.lineItems?.map((lineItem) => ({
|
||||
id: lineItem.id || '',
|
||||
quantity: lineItem.quantity ?? 0,
|
||||
id: lineItem.referencedId || '',
|
||||
cost: {
|
||||
totalAmount: {
|
||||
amount: (lineItem as any)?.price?.totalPrice || '',
|
||||
|
Loading…
x
Reference in New Issue
Block a user