Fix error display in RampSelectOptionScene
#5822
Merged
+14
−19
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This happens because
useRampQuotescallsrunWithTimeoutfor 10 seconds. If that timeout triggers, we show an error card in place of the payment method.Fix to increase the delay, only ever show one error card, and also notify the user to check their network connection.
CHANGELOG
Does this branch warrant an entry to the CHANGELOG?
Dependencies
noneRequirements
If you have made any visual changes to the GUI. Make sure you have:
Note
Consolidates ramp errors to a single non‑fiat error card when no quotes are available, increases quote fetch timeout to 15s, and updates generic error copy to mention network connectivity.
src/components/scenes/RampSelectOptionScene.tsx):ErrorCardfor the first non-FiatProviderErrorwhenallQuotes.length === 0.nonFiatErrorsfiltered fromfailedQuotes.src/hooks/useRampQuotes.ts):runWithTimeoutforplugin.fetchQuotesfrom10000to15000ms.src/locales/en_US.ts,src/locales/strings/enUS.json):error_generic_messageto: “An unexpected error occurred. Please check your network connection and try again later.”Written by Cursor Bugbot for commit 7a14b27. This will update automatically on new commits. Configure here.