Skip to content

Commit dbb8a0e

Browse files
committed
Update CartContents.vue
1 parent c4383f3 commit dbb8a0e

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

components/Cart/CartContents.vue

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,18 +57,13 @@ const cartItems = computed(() => cart.cart);
5757
const handleRemoveProduct = async (key) => {
5858
try {
5959
await cart.removeProductFromCart(key);
60-
} catch (error) {
61-
console.error("Error removing product from cart:", error);
62-
// Optionally, you can add a user-friendly notification here
63-
// without exposing the error details
64-
}
60+
} catch (error) {}
6561
};
6662
6763
onMounted(async () => {
6864
try {
6965
await cart.refetch();
7066
} catch (err) {
71-
console.error("Error fetching cart:", err);
7267
error.value = err;
7368
} finally {
7469
isLoading.value = false;
@@ -84,7 +79,6 @@ const handleUpdateQuantity = async ({ key, quantity }) => {
8479
try {
8580
await cart.updateCartItemQuantity(key, quantity);
8681
} catch (error) {
87-
console.error("Error updating cart item quantity:", error);
8882
// Optionally, add user notification here
8983
}
9084
};

0 commit comments

Comments
 (0)