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 888fd82 commit 13d5a9dCopy full SHA for 13d5a9d
store/useCart.js
@@ -30,7 +30,6 @@ export const useCart = defineStore("cartState", {
30
this.cart.push(productCopy);
31
}
32
},
33
-
34
removeProductFromCart(product) {
35
this.cart.splice(this.cart.indexOf(product), 1);
36
@@ -42,8 +41,7 @@ export const useCart = defineStore("cartState", {
42
41
getCartQuantity() {
43
return this.cart.reduce((total, product) => total + product.quantity, 0);
44
45
46
- getCartTotal() {
+ getCartTotal() {
47
const currencySymbol = useRuntimeConfig().public.currencySymbol || "kr";
48
49
return this.cart.reduce(
0 commit comments