diff --git a/libs/environment/src/hooks/use-nodes.tsx b/libs/environment/src/hooks/use-nodes.tsx index 0469707f1..e9bc9ae58 100644 --- a/libs/environment/src/hooks/use-nodes.tsx +++ b/libs/environment/src/hooks/use-nodes.tsx @@ -159,7 +159,6 @@ const reducer = (state: Record, action: Action) => { }; export const useNodes = (config: Configuration) => { - const configCacheKey = config.hosts.join(' '); const [clients, setClients] = useState({}); const [customNode, setCustomNode] = useState(); const [state, dispatch] = useReducer(reducer, getInitialState(config)); @@ -171,7 +170,7 @@ export const useNodes = (config: Configuration) => { return () => { subscriptions.forEach((unsubscribe) => unsubscribe()); }; - }, [configCacheKey]); + }, [config]); useEffect(() => { if (customNode) { diff --git a/libs/environment/src/utils/validate-node.tsx b/libs/environment/src/utils/validate-node.tsx index 16e27fd22..df984947c 100644 --- a/libs/environment/src/utils/validate-node.tsx +++ b/libs/environment/src/utils/validate-node.tsx @@ -93,7 +93,7 @@ export const getErrorMessage = (env: Networks, data?: NodeData) => { return { headline: t(`Error: the node you are reading from does not have SSL`), message: t( - '${data.url} does not have SSL. SSL is required to subscribe to data.' + `${data.url} does not have SSL. SSL is required to subscribe to data.` ), }; }