mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 20:26:49 +00:00
Allow cart view to remove the item
This commit is contained in:
@@ -8,7 +8,7 @@ export type { ItemBody, RemoveItemBody }
|
||||
function fetcher(fetch: Fetcher<Cart>, { itemId }: RemoveItemBody) {
|
||||
return fetch({
|
||||
url: '/api/bigcommerce/cart',
|
||||
method: 'POST',
|
||||
method: 'DELETE',
|
||||
body: { itemId },
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user