Update LightningSettings.tsx

This commit is contained in:
Marcos Rodriguez Vélez 2025-01-01 20:32:28 -04:00 committed by GitHub
parent cbda4cafab
commit c5c2ce8a61
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);