mirror of
https://github.com/vercel/commerce.git
synced 2025-07-07 21:31:22 +00:00
refactor: small cleanup
This commit is contained in:
parent
8d0f25f501
commit
f8747bd506
@ -13,7 +13,6 @@ export default function DeleteItemButton({ item }: { item: CartItem }) {
|
|||||||
async function handleRemove() {
|
async function handleRemove() {
|
||||||
setRemoving(true);
|
setRemoving(true);
|
||||||
|
|
||||||
console.log(item.id);
|
|
||||||
const response = await fetch(`/api/cart?lineItemId=${item.id}`, {
|
const response = await fetch(`/api/cart?lineItemId=${item.id}`, {
|
||||||
method: 'DELETE'
|
method: 'DELETE'
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user