From 9fbf22209ceb0d52b1e54ef36845575a47c53f6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20Rodriguez=20V=C3=A9lez?= Date: Thu, 3 Feb 2022 10:54:29 -0500 Subject: [PATCH] FIX: iOS: If you create a lightning wallet and have a bad URL (enter "x") the app crashes. #4449 --- screen/wallets/add.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/screen/wallets/add.js b/screen/wallets/add.js index 28ab4b12f..c0f698d4d 100644 --- a/screen/wallets/add.js +++ b/screen/wallets/add.js @@ -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);