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