mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-03-15 11:59:21 +01:00
Update LightningSettings.tsx
This commit is contained in:
parent
cbda4cafab
commit
c5c2ce8a61
1 changed files with 21 additions and 20 deletions
|
@ -113,6 +113,7 @@ const LightningSettings: React.FC = () => {
|
||||||
if (URI) {
|
if (URI) {
|
||||||
const normalizedURI = new URL(URI.replace(/([^:]\/)\/+/g, '$1')).toString();
|
const normalizedURI = new URL(URI.replace(/([^:]\/)\/+/g, '$1')).toString();
|
||||||
|
|
||||||
|
// Validate the normalized URI
|
||||||
await LightningCustodianWallet.isValidNodeAddress(normalizedURI);
|
await LightningCustodianWallet.isValidNodeAddress(normalizedURI);
|
||||||
|
|
||||||
await setLNDHub(normalizedURI);
|
await setLNDHub(normalizedURI);
|
||||||
|
|
Loading…
Add table
Reference in a new issue