Skip to content

reset the review every time we render ProductScreen#34

Open
khalidfasely wants to merge 1 commit intodennisivy:masterfrom
khalidfasely:patch-6
Open

reset the review every time we render ProductScreen#34
khalidfasely wants to merge 1 commit intodennisivy:masterfrom
khalidfasely:patch-6

Conversation

@khalidfasely
Copy link
Copy Markdown

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant