final commit before execution

This commit is contained in:
2025-02-07 11:51:43 +02:00
parent fa272c636c
commit 58e7ed2f06
14 changed files with 473 additions and 196 deletions

View File

@@ -54,6 +54,7 @@ const useCartStore = create(
set({cartItems: [...get().cartItems]})
}
},
decreaseQuantity: productId => {
const itemExists = get().cartItems.find(
cartItem => cartItem.id === productId