Skip to content

Commit c4383f3

Browse files
committed
Remove logging
1 parent 0e54fa6 commit c4383f3

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

store/useCart.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { defineStore } from "pinia";
22
import { useQuery, useMutation } from "@vue/apollo-composable";
33
import { computed, ref, watch } from "vue";
4+
45
import ADD_TO_CART_MUTATION from "@/apollo/mutations/ADD_TO_CART_MUTATION.gql";
56
import UPDATE_CART_MUTATION from "@/apollo/mutations/UPDATE_CART_MUTATION.gql";
67
import GET_CART_QUERY from "@/apollo/queries/GET_CART_QUERY.gql";
@@ -61,7 +62,6 @@ export const useCart = defineStore("cartState", () => {
6162
});
6263
await refetchCart();
6364
} catch (err) {
64-
console.error("Error adding to cart:", err);
6565
} finally {
6666
loading.value = false;
6767
}
@@ -79,7 +79,6 @@ export const useCart = defineStore("cartState", () => {
7979
});
8080
await refetchCart();
8181
} catch (err) {
82-
console.error("Error updating cart:", err);
8382
await refetchCart();
8483
} finally {
8584
loading.value = false;
@@ -92,7 +91,6 @@ export const useCart = defineStore("cartState", () => {
9291
try {
9392
await updateCartItemQuantity(key, 0);
9493
} catch (err) {
95-
console.error("Error removing product from cart:", err);
9694
} finally {
9795
loading.value = false;
9896
await refetchCart();
@@ -107,7 +105,6 @@ export const useCart = defineStore("cartState", () => {
107105
await removeProductFromCart(item.key);
108106
}
109107
} catch (err) {
110-
console.error("Error clearing cart:", err);
111108
} finally {
112109
loading.value = false;
113110
await refetchCart();

0 commit comments

Comments
 (0)