proshop_django
proshop_django copied to clipboard
reset the review every time we render ProductScreen
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.