File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -57,18 +57,13 @@ const cartItems = computed(() => cart.cart);
57
57
const handleRemoveProduct = async (key ) => {
58
58
try {
59
59
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) {}
65
61
};
66
62
67
63
onMounted (async () => {
68
64
try {
69
65
await cart .refetch ();
70
66
} catch (err) {
71
- console .error (" Error fetching cart:" , err);
72
67
error .value = err;
73
68
} finally {
74
69
isLoading .value = false ;
@@ -84,7 +79,6 @@ const handleUpdateQuantity = async ({ key, quantity }) => {
84
79
try {
85
80
await cart .updateCartItemQuantity (key, quantity);
86
81
} catch (error) {
87
- console .error (" Error updating cart item quantity:" , error);
88
82
// Optionally, add user notification here
89
83
}
90
84
};
You can’t perform that action at this time.
0 commit comments