mirror of
https://github.com/vercel/commerce.git
synced 2025-07-04 20:21:21 +00:00
Fix add item
This commit is contained in:
parent
f428d5d5d4
commit
505bf42ad6
@ -24,7 +24,7 @@ const addItem: CartEndpoint['handlers']['addItem'] = async ({
|
|||||||
|
|
||||||
// Create an order if it doesn't exist
|
// Create an order if it doesn't exist
|
||||||
if (!cartId) {
|
if (!cartId) {
|
||||||
cartId = await restFetch('POST', `/orders/Outgoing`).then(
|
cartId = await restFetch('POST', `/orders/Outgoing`, {}).then(
|
||||||
(response: { ID: string }) => response.ID
|
(response: { ID: string }) => response.ID
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user