react-storefront
react-storefront copied to clipboard
ISSUE #202 Update quantity if product already exist in cart
Issue #202
Checking if product exist in store then call updateCart
function with existing quantity + 1
on click of "Add to Cart"
Before
After
Note :- Only the initial store has
id
of product asNumber
. And then if we do "Add to cart" from anywhere it is being added asstring
. Hence made itstring
in initial store as well.