satoshipay / solar

🌞 Stellar wallet. Secure and user-friendly.
https://solarwallet.io
MIT License
192 stars 57 forks source link

Add retry button to submission error view #1214

Closed ebma closed 3 years ago

ebma commented 3 years ago

The issue of submission timeouts was not related to horizon but to the timeout specified for the promise queue here. That's why the transaction often went through although the "An unknown error occured" message was shown. Instead of increasing this timeout I changed the error message shown in the submission progress so that the error translation is used if error.response is undefined (i.e. the error is not a submission error). This means that a "Request timed out" message (i18n translation for timeout-error) is shown once the timeout of 10 seconds is reached on transaction submission. If the user clicks on the newly added "Retry" button he is likely to see a "Successful" message pretty fast since the transaction was already accepted by the network.

Closes #1208.