divanov11 / proshop_django

403 stars 426 forks source link

reset the review every time we render ProductScreen #34

Open khalidfasely opened 1 year ago

khalidfasely commented 1 year ago

The problem was that when we get an error in a product after trying to create a review, and we go to other product the error stays in the state and renders for every product. So we reset the review state every time the component renders.