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