diff --git a/components/logger.js b/components/logger.js index b64c6c00..da58f7b3 100644 --- a/components/logger.js +++ b/components/logger.js @@ -228,7 +228,7 @@ const WalletLoggerProvider = ({ children }) => { const log = { wallet, level, message, ts: +new Date() } saveLog(log) setLogs((prevLogs) => [...prevLogs, log]) - }, [setLogs, saveLog]) + }, [saveLog]) return ( diff --git a/components/webln/nwc.js b/components/webln/nwc.js index e012fd24..205762da 100644 --- a/components/webln/nwc.js +++ b/components/webln/nwc.js @@ -131,7 +131,7 @@ export function NWCProvider ({ children }) { } finally { setInitialized(true) } - }, [logger]) + }, [validateParams, logger]) const saveConfig = useCallback(async (config) => { // immediately store config so it's not lost even if config is invalid @@ -252,7 +252,7 @@ export function NWCProvider ({ children }) { // relay?.close() if (relay) logger.info(`closed connection to ${relayUrl}`) } - }, [walletPubkey, secret, logger]) + }, [walletPubkey, relayUrl, secret, logger]) useEffect(() => { loadConfig().catch(err => logger.error(err.message || err.toString?.()))