refactor: small cleanup

This commit is contained in:
Victor Gerbrands 2023-05-04 13:38:03 +02:00
parent 8d0f25f501
commit f8747bd506

View File

@ -13,7 +13,6 @@ export default function DeleteItemButton({ item }: { item: CartItem }) {
async function handleRemove() {
setRemoving(true);
console.log(item.id);
const response = await fetch(`/api/cart?lineItemId=${item.id}`, {
method: 'DELETE'
});