Skip to content

Commit 13d5a9d

Browse files
authored
Update useCart.js
1 parent 888fd82 commit 13d5a9d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

store/useCart.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ export const useCart = defineStore("cartState", {
3030
this.cart.push(productCopy);
3131
}
3232
},
33-
3433
removeProductFromCart(product) {
3534
this.cart.splice(this.cart.indexOf(product), 1);
3635
},
@@ -42,8 +41,7 @@ export const useCart = defineStore("cartState", {
4241
getCartQuantity() {
4342
return this.cart.reduce((total, product) => total + product.quantity, 0);
4443
},
45-
46-
getCartTotal() {
44+
getCartTotal() {
4745
const currencySymbol = useRuntimeConfig().public.currencySymbol || "kr";
4846

4947
return this.cart.reduce(

0 commit comments

Comments
 (0)