BitBoxSwiss / bitbox-wallet-app

The BitBoxApp for desktop and mobile.
https://bitbox.swiss/app
Apache License 2.0
245 stars 82 forks source link

backend/handlers: fix err handling in getExchangeBuySupported #2795

Closed Beerosagos closed 1 week ago

Beerosagos commented 1 week ago

If getExchangeBuySupported was called after an account was closed it was returning a generic error, causing the frontend to display the generic error popup when disconnecting the bitbox every now and then.

This makes the endpoint to return an empty list of supported exchanges if the account is not available.

Beerosagos commented 1 week ago

There is a CI error, but looks unrelated to the PR

thisconnect commented 1 week ago

There is a CI error, but looks unrelated to the PR

yeah sorry, it's our new translation check and will be fixed with https://github.com/BitBoxSwiss/bitbox-wallet-app/pull/2794