Merge pull request #4457 from BlueWallet/lnderror

FIX: iOS: If you create a lightning wallet and have a bad URL (enter …
This commit is contained in:
GLaDOS 2022-02-09 19:55:55 +00:00 committed by GitHub
commit 9c5ee71789
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -211,7 +211,11 @@ const WalletsAdd = () => {
} catch (Err) {
setIsLoading(false);
console.warn('lnd create failure', Err);
return alert(Err);
if (Err.message) {
return alert(Err.message);
} else {
return alert(loc.wallets.add_lndhub_error);
}
// giving app, not adding anything
}
A(A.ENUM.CREATED_LIGHTNING_WALLET);