-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Conversation
@@ -722,24 +722,27 @@ const AmountToBuy = () => { | |||
<ScreenLayout> | |||
<ScreenLayout.Body> | |||
<ErrorView | |||
icon="info" |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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...)
locales/languages/en.json
Outdated
@@ -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}}", |
There was a problem hiding this comment.
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"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
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."
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it. will update.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
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.