proshop_django icon indicating copy to clipboard operation
proshop_django copied to clipboard

reset the review every time we render ProductScreen

Open khalidfasely opened this issue 2 years ago • 0 comments

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.

khalidfasely avatar Sep 24 '22 12:09 khalidfasely