Skip to content

Fix payment view crashing due to failing stellar.expert fetch#1141

Open
ebma wants to merge 1 commit into
masterfrom
bugfix/1139-fix-payment-view-crashing-on-failed-fetch
Open

Fix payment view crashing due to failing stellar.expert fetch#1141
ebma wants to merge 1 commit into
masterfrom
bugfix/1139-fix-payment-view-crashing-on-failed-fetch

Conversation

@ebma

@ebma ebma commented Sep 1, 2020

Copy link
Copy Markdown
Member

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