Skip to content

Commit 5dccad5

Browse files
committed
Only ignore NWC lud16 param on domain mismatch if domain is given
1 parent 56aac3d commit 5dccad5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

wallets/lib/protocols/lnAddr.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,9 @@ function addressPopulate (wallet, formState) {
3434
return null
3535
}
3636

37+
const lud16Domain = walletLud16Domain(wallet.name)
3738
const nwcLud16Domain = nwcLud16.split('@')[1]
38-
if (nwcLud16Domain !== walletLud16Domain(wallet.name)) {
39+
if (lud16Domain && nwcLud16Domain !== lud16Domain) {
3940
return null
4041
}
4142

0 commit comments

Comments
 (0)