Sunagatov / Iced-Latte-Frontend

a online Marketplace for coffee retail (Frontend)
https://iced-latte.uk
MIT License
210 stars 48 forks source link

(SHOPPING CART) Error when deleting a product from the cart with the "-" button #265

Open Diana-Smolnikova opened 2 months ago

Diana-Smolnikova commented 2 months ago

To Reproduce Steps to reproduce the behavior:

  1. Go to https://iced-latte.uk
  2. Add several different products to the cart
  3. Go to Shopping cart
  4. Click the "-" button for the selected product

Expected behavior Product removed from cart

Actual behavior Application error: a client-side exception has occurred TypeError: Cannot read properties of undefined (reading 'productQuantity')

Screenshots

https://github.com/user-attachments/assets/4f855b12-bb84-4cf5-8c1e-b6e3138d2717

Additional context If there is only 1 product in the cart, there is no error when deleting

Akhi88S commented 2 weeks ago

Hey @ilsinyakov @Diana-Smolnikova, can you assign this to me? I'd like to take it up.

ilsinyakov commented 2 weeks ago

Hey @ilsinyakov @Diana-Smolnikova, can you assign this to me? I'd like to take it up.

Hello. Done