From 53c0f8c277c92b77fa4dff545c23ead21e0badad Mon Sep 17 00:00:00 2001 From: ekzyis Date: Mon, 22 Sep 2025 17:10:56 +0200 Subject: [PATCH] Fix initial value not set from NWC lud16 param (#2567) --- wallets/client/components/form/hooks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wallets/client/components/form/hooks.js b/wallets/client/components/form/hooks.js index b5fcc990..579ed176 100644 --- a/wallets/client/components/form/hooks.js +++ b/wallets/client/components/form/hooks.js @@ -98,7 +98,7 @@ export function useProtocolForm (protocol) { value = complementaryFormState?.config?.[field.name] } - if (protocol.name === 'LN_ADDR' && field.name === 'address' && lud16Domain && value) { + if (protocol.name === 'LN_ADDR' && field.name === 'address' && lud16Domain) { // automatically set lightning addresses from NWC urls if lud16 parameter is present if (nwcSendFormState?.config?.url) { const { lud16 } = parseNwcUrl(nwcSendFormState.config.url)