We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb784ae commit 04c3596Copy full SHA for 04c3596
store/useCart.js
@@ -39,8 +39,6 @@ export const useCart = defineStore("cartState", {
39
);
40
41
if (foundProductInCartIndex > -1) {
42
- // We need to update the quantity
43
-
44
this.cart[foundProductInCartIndex].quantity += 1;
45
} else {
46
// We need to construct a cart item that matches the expected structure in `this.cart`
@@ -83,8 +81,6 @@ export const useCart = defineStore("cartState", {
83
81
getCartTotal() {
84
82
const currencySymbol = useRuntimeConfig().public.currencySymbol || "kr";
85
86
- //console.log("Cart:", this.cart);
87
88
const total = this.cart.reduce((total, product) => {
89
// Assuming product.price is a string that includes the currency symbol
90
const numericPrice = product.price
0 commit comments