mohamedsamara / mern-ecommerce

:balloon: Fullstack MERN Ecommerce Application
https://mern-store-gold.vercel.app
MIT License
1.63k stars 770 forks source link

Unable to add review for a non recommended product #194

Closed faraz16iqbal closed 4 months ago

faraz16iqbal commented 1 year ago

Describe the bug While adding a review and selecting "No" for on the Will you recommend this product? field results in a 400 due to small issue in the DOMPurify sanitize function.

To Reproduce Steps to reproduce the behavior:

  1. Sign In and select any product
  2. Fill all the values in the Add Review form and select "No" on the Will you recommend this product? field.
  3. See error

Expected behavior A successful request to the server.

faraz16iqbal commented 1 year ago

I already have the fix for this bug, can I go ahead and resolve it?

mohamedsamara commented 1 year ago

@faraz16iqbal Off course! Please do and i will review and merge. Thanks!

rahulll18 commented 1 year ago

Kindly assign this issue to me. I will try my best to resolve this isuue