Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Source-Controller/eCommerce-Fullstack
/ decQty
Function
decQty
context/StateContext2.js:75–80 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
73
}
74
75
const
decQty = () => {
76
setQty((prevQty) => {
77
if
(prevQty - 1 < 1)
return
1;
78
return
prevQty - 1
79
});
80
}
81
82
return
(
83
<Context.Provider
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected