Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix onramp error loop by providing payment method change #4528

Merged
merged 2 commits into from
Jun 20, 2022

Conversation

wachunei
Copy link
Member

@wachunei wachunei commented Jun 17, 2022

This PR fixes https://consensyssoftware.atlassian.net/browse/ONRAMP-90: A user remains in a loop after reaching a "no tokens available" error in the amount to buy.

@wachunei wachunei marked this pull request as ready for review June 17, 2022 19:25
@wachunei wachunei requested a review from a team as a code owner June 17, 2022 19:25
@@ -722,24 +722,27 @@ const AmountToBuy = () => {
<ScreenLayout>
<ScreenLayout.Body>
<ErrorView
icon="info"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

non-blocking: I suggest we rename this prop to type instead of icon

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I avoid using type since it is a reserved word. Let's keep icon, as the other props also refer to elements of the view (icon, title, description, etc...)

@@ -1645,7 +1645,9 @@
"no_providers_available": "No providers available",
"try_different_amount_to_buy_input": "Try choosing a different payment method or try to increase or reduce the amount you want to buy!",
"webview_received_error": "WebView received error status code: {{code}}",
"no_tokens_available": "There are currently no cryptocurrencies available to purchase on {{network}} in {{region}}",
"no_tokens_available_title": "No Tokens Available",
"no_tokens_available": "With the selected payment method, there are currently no tokens available to purchase on {{network}}",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest to revise the message to "There are currently no tokens available to purchase on {{network}} with the selected payment method"

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@alaahd Fantastic concise edit. My only build is to add a period at the end like so: "There are currently no tokens available to purchase on {{network}} with the selected payment method."

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it. will update.

Copy link
Contributor

@alaahd alaahd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@wachunei wachunei merged commit d25a124 into release/5.3.0 Jun 20, 2022
@wachunei wachunei deleted the fix/onramp-error-loop branch June 20, 2022 15:50
@github-actions github-actions bot locked and limited conversation to collaborators Jun 20, 2022
@mobularay mobularay added the release-5.3.0 Issue or pull request that will be included in release 5.3.0 label Jun 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-5.3.0 Issue or pull request that will be included in release 5.3.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants