MCPcopy Create free account
hub / github.com/Source-Controller/eCommerce-Fullstack / decQty

Function decQty

context/StateContext.js:71–77  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

69 }
70
71 const decQty = () => {
72 setQty((prevQty) => {
73 if(prevQty - 1 < 1) return 1;
74
75 return prevQty - 1;
76 });
77 }
78
79 return (
80 <Context.Provider

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected