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 payment view crashing due to failing stellar.expert fetch #1141

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ebma
Copy link
Member

@ebma ebma commented Sep 1, 2020

Don't re-throw a caught error in the useWellKnownAccounts hook but add the error to local state and make it accessible.

This does not show a toast notification with a 'custom' message but a Bad response (404) from stellar.expert server error toast which is initiated by the wellKnownAccountsCache.suspend(testnet, fetchAccounts) function.
I tried showing an error toast notification with a custom text but the Bad response... error is thrown multiple times and the custom notification is overwritten rather quickly. So if we wanted to show a more detailed message we would have to either modify the cache.suspend function or bypass it with something else.

Closes #1139.

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.

Send payment view crashes when stellar.expert server is unavailable
1 participant