MCPcopy
hub / github.com/jamstack-cms/jamstack-ecommerce / increment

Function increment

pages/cart.js:22–25  ·  view source on GitHub ↗
(item)

Source from the content-addressed store, hash-verified

20 const cartEmpty = numberOfItemsInCart === Number(0)
21
22 function increment(item) {
23 item.quantity = item.quantity + 1
24 setItemQuantity(item)
25 }
26
27 function decrement(item) {
28 if (item.quantity === 1) return

Callers 1

cart.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected