ChildMindInstitute / mindlogger-applet-library

Other
1 stars 0 forks source link

The applet is duplicated on the cart page after double-clicking on the "Add to basket" button #122

Open natalia-muzyka opened 2 years ago

natalia-muzyka commented 2 years ago

Steps to reproduce

  1. Open a site https://library.mindlogger.org/
  2. Select any applet (click on the checkbox on the applet level)
  3. Click on the "Add to basket" button on the selected applet and pay attention to the counter on the basket icon
  4. Click on the "Add to basket" button on the selected applet again and pay attention to the counter on the basket icon
  5. Proceed to the cart page
  6. Pay attention to the screen

Actual result The applet is duplicated on the cart page after double-clicking on the "Add to basket" button. There is an ability to add the same applet to the cart a few times.

Expected result The applet isn't duplicated on the cart page after double-clicking on the "Add to basket" button.

Notes: Reproducible on the main page, search page, applet detail page. After an attempt to edit one of the duplicated applets changes are applied to the other duplicates.

Video: https://www.screencast.com/t/fjbqEoNqB3

Environment: https://library.mindlogger.org/ https://library-staging.mindlogger.org/ Win 10 // Chrome 94.0.4606.61 macOS 11.0 // Chrome 94.0.4606.61

natalia-muzyka commented 2 years ago

The issue is reproducible after selecting items and clicking the "Add items to basket" on the Applet detail page. Video: https://www.screencast.com/t/C60VyvQCGcol

Environment: https://library-staging.mindlogger.org/ Win 10 // Chrome 97.0.4692.99

natalia-muzyka commented 2 years ago

Still reproducible if user adds the applet from Search/Main and then from Detail page: https://www.screencast.com/t/RUwEE20Ek1vD

Environment: https://library-staging.mindlogger.org/ Win 10 // Chrome 101