Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🪲[Bug]: delete button in the cart does not remove all quantity of that product from cart but it only decrease item quantity #158

Open
ayushpatel1248 opened this issue May 16, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@ayushpatel1248
Copy link
Contributor

Describe the bug

in cart when there is item which have more then one quantity then if we click on the delete (cross) button it should delete the whole product with its all quantity but instead it is only decrementing the quantity of product which is not its work decrementing is work of minus button.

To Reproduce

  1. will make the function in the context api code for deleting the product from the cart
  2. using context api only call that function the cross button is clicked in the cart.

Expected behavior

after the addition of this code whenever user will click on the cross button whole product with its all quantity will me removed from the cart.

Screenshots
Screenshot 2024-05-16 at 5 13 39 PM
Screenshot 2024-05-16 at 5 14 29 PM
Screenshot 2024-05-16 at 5 14 19 PM

here you can see it only decremented the quantity not didnt remove

Desktop (please complete the following information):

  • OS: macos
  • Browser chrome
  • Version 22

please assign me this under the gssoc 24

@ayushpatel1248 ayushpatel1248 added the bug Something isn't working label May 16, 2024
Copy link

Congratulations, @ayushpatel1248! 🎉 Thank you for creating your issue. Your contribution is greatly appreciated and we look forward to working with you to resolve the issue. Keep up the great work!

We will promptly review your changes and offer feedback. Keep up the excellent work! Kindly remember to check our contributing guidelines

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant