Skip to content

Conversation

khalidfasely
Copy link

Instead of redirecting the user when he's refreshing the placeorder page to the payment page again and making him choose the payment method and then continue, as you did in the course, we instead initialize the state with the paymentMethod value from the localStorage this way the user when he refreshes the placeorder page doesn't get redirected to the payment page.

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