mirror of
https://github.com/vercel/commerce.git
synced 2025-05-15 05:56:59 +00:00
feat(poc): fix cart type
This commit is contained in:
parent
ed9d1dd2a1
commit
ab2959fa15
@ -280,9 +280,8 @@ export async function getCart(): Promise<Cart> {
|
|||||||
id: cartData.token || '',
|
id: cartData.token || '',
|
||||||
lines:
|
lines:
|
||||||
cartData.lineItems?.map((lineItem) => ({
|
cartData.lineItems?.map((lineItem) => ({
|
||||||
id: lineItem.id || '',
|
|
||||||
quantity: lineItem.quantity ?? 0,
|
|
||||||
id: lineItem.referencedId || '',
|
id: lineItem.referencedId || '',
|
||||||
|
quantity: lineItem.quantity ?? 0,
|
||||||
cost: {
|
cost: {
|
||||||
totalAmount: {
|
totalAmount: {
|
||||||
amount: (lineItem as any)?.price?.totalPrice || '',
|
amount: (lineItem as any)?.price?.totalPrice || '',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user