When you click multiple times on "Add to Card" button multiple times. It pushes same product for multiple times in array. Whether it should only update the quantity if product is already in cart.
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
Bug report
Describe the bug
When you click multiple times on "Add to Card" button multiple times. It pushes same product for multiple times in array. Whether it should only update the quantity if product is already in cart.
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
Expected behavior
Quantity of the product should get updated in case if it's already in cart and user clicks on "Add to Card"
Screenshots
Product Page
Cart Page
System information
Additional context
Add any other context about the problem here.