Fix provider default setting (#1183)

This commit is contained in:
ekzyis 2024-05-17 20:27:57 -05:00 committed by GitHub
parent 91192025e5
commit 7e1c62fdcb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -63,7 +63,7 @@ function RawWebLNProvider ({ children }) {
return null
})
})
}, [...availableProviders])
}, [])
// keep list in sync with underlying providers
useEffect(() => {
@ -130,7 +130,7 @@ function RawWebLNProvider ({ children }) {
}, [])
return (
<WebLNContext.Provider value={{ provider: isEnabled(provider) ? { sendPayment: sendPaymentWithToast } : null, enabledProviders, setProvider, clearConfig }}>
<WebLNContext.Provider value={{ provider: isEnabled(provider) ? { name: provider.name, sendPayment: sendPaymentWithToast } : null, enabledProviders, setProvider, clearConfig }}>
{children}
</WebLNContext.Provider>
)