Skip to content

Commit 04c3596

Browse files
committed
Cleanup
1 parent bb784ae commit 04c3596

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

store/useCart.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ export const useCart = defineStore("cartState", {
3939
);
4040

4141
if (foundProductInCartIndex > -1) {
42-
// We need to update the quantity
43-
4442
this.cart[foundProductInCartIndex].quantity += 1;
4543
} else {
4644
// We need to construct a cart item that matches the expected structure in `this.cart`
@@ -83,8 +81,6 @@ export const useCart = defineStore("cartState", {
8381
getCartTotal() {
8482
const currencySymbol = useRuntimeConfig().public.currencySymbol || "kr";
8583

86-
//console.log("Cart:", this.cart);
87-
8884
const total = this.cart.reduce((total, product) => {
8985
// Assuming product.price is a string that includes the currency symbol
9086
const numericPrice = product.price

0 commit comments

Comments
 (0)