Closed GreeshmaRahool closed 2 years ago
Great job @GreeshmaRahool 👍 Better Solution 🥇 Now the PR is working perfectly. Now, Its not only updating the stock amount after the purchase is complete, but also
resetting the random value if the stock amount is zero
. This is better solution than disabling the ADDTOCART button as you did it before.
Thanks @BikramRawat👍
🥇
Description
Update product's stock amount for every purchase
Fixes #280
How to test?
npm run dev
Checklist