diff --git a/src/components/CartItem.svelte b/src/components/CartItem.svelte index af5687e..670fbbf 100644 --- a/src/components/CartItem.svelte +++ b/src/components/CartItem.svelte @@ -24,12 +24,12 @@ } else { //Remove the item - removeItem(product); + removeItem(); } } } - function removeItem(product) { + function removeItem() { let removedItemCart = $cart.filter((cartItem) => { return cartItem.id != product.id; });