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

Function decrement

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

Source from the content-addressed store, hash-verified

25 }
26
27 function decrement(item) {
28 if (item.quantity === 1) return
29 item.quantity = item.quantity - 1
30 setItemQuantity(item)
31 }
32
33 if (!renderClientSideComponent) return null
34

Callers 1

cart.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected