FIX: Localize string

This commit is contained in:
Marcos Rodriguez Vélez 2021-10-17 10:57:16 -04:00
parent 8a007ca763
commit b030adf183
No known key found for this signature in database
GPG key ID: 0D64671698D11C5C
2 changed files with 2 additions and 2 deletions

View file

@ -185,6 +185,7 @@
"header": "Receive"
},
"send": {
"provided_address_is_invoice": "This address appears to be for a Lightning invoice. Please, go to your Lightning wallet in order to make a payment for this invoice.",
"broadcastButton": "Broadcast",
"broadcastError": "Error",
"broadcastNone": "Insert Transaction Hex",

View file

@ -453,8 +453,7 @@ const SendDetails = () => {
} else if (transaction.address) {
const address = transaction.address.trim().toLowerCase();
if (address.startsWith('lnb') || address.startsWith('lightning:lnb')) {
error =
'This address appears to be for a Lightning invoice. Please, go to your Lightning wallet in order to make a payment for this invoice.';
error = loc.send.provided_address_is_invoice;
console.log('validation error');
}
}