Avoids showing error machine-level details when paying for zaps on external wallets

This commit is contained in:
Vitor Pamplona 2024-03-19 17:44:51 -04:00
parent 77789379c0
commit ffc0a7c6ed

View File

@ -444,11 +444,12 @@ fun payViaIntent(
ContextCompat.startActivity(context, intent, null)
} catch (e: Exception) {
if (e is CancellationException) throw e
if (e.message != null) {
onError(context.getString(R.string.no_wallet_found_with_error, e.message!!))
} else {
// don't display ugly error messages
// if (e.message != null) {
// onError(context.getString(R.string.no_wallet_found_with_error, e.message!!))
// } else {
onError(context.getString(R.string.no_wallet_found))
}
// }
}
}