From fdfae745244db2042d98b80483dc3fa4deced170 Mon Sep 17 00:00:00 2001 From: Botond Date: Thu, 7 Jul 2022 10:14:24 +0100 Subject: [PATCH] fix: lint --- libs/environment/src/hooks/use-nodes.tsx | 3 +-- libs/environment/src/utils/validate-node.tsx | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) 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.` ), }; }