Closed juancstlm closed 6 years ago
Voting for itemId and quantity in local storage. That's how it's currently in checkout right?
I like item id and quanity asswell but check out is coded for the item object. Should be a 10 min fix.
Oh yeah just read the comment on the cart PR. Will fix 👍
This is also an issue with the Counter component, especially in displaying the quantity from cart
@timroesner Is this still an issue?
I think we're good
the Item.js page uses
cart[this.state.item.itemid] = ++quantity
while the ItemCards usecart[this.props.itemID] = item
This will cause an issue with check out page wich uses
cart[this.props.itemID] = item
We talked about just using itemId and quanity in local storage and not the whole item object.
Can we agree on which to use so that check out can be updated accordingly.