jamstack-cms / jamstack-ecommerce

A starter project for building performant ECommerce applications with Next.js and React
https://www.jamstackecommerce.dev/
MIT License
1.93k stars 425 forks source link

[BUG] Demo Site – Remove item from cart #5

Closed dsuriano closed 3 years ago

dsuriano commented 4 years ago

Steps to Reproduce

  1. Add a single item to the cart multiple times
  2. View cart
  3. Remove 1 of the duplicate items

What's Happening

All duplicate items are removed

What's expected

Only a single duplicate item should be removed


Looks like it's due to the fact that removal is based on id and they're all the same ... Bunch of different ways to go about fixing it, just wanted to mention it exists. Nice work on this, btw. Really digging the simplicity of the store design.