From be844f18f2d302515a2072099c4e7761560fe622 Mon Sep 17 00:00:00 2001 From: finned-palmer Date: Wed, 30 Jun 2021 17:23:52 -0500 Subject: [PATCH] Add network to useSettings hook --- pkg/btc-wallet/src/js/hooks/useSettings.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/btc-wallet/src/js/hooks/useSettings.js b/pkg/btc-wallet/src/js/hooks/useSettings.js index 5506583ba..81a9f3970 100644 --- a/pkg/btc-wallet/src/js/hooks/useSettings.js +++ b/pkg/btc-wallet/src/js/hooks/useSettings.js @@ -44,6 +44,7 @@ export const SettingsContext = createContext({ }); export const SettingsProvider = ({ channel, children }) => { + const [network, setNetwork] = useState('bitcoin'); const [channelData, setChannelData] = useState(null); const [loadedBtc, setLoadedBtc] = useState(false); const [loadedSettings, setLoadedSettings] = useState(false); @@ -255,6 +256,8 @@ export const SettingsProvider = ({ channel, children }) => { return (