fix: lint

This commit is contained in:
Botond
2022-07-07 10:14:24 +01:00
parent 7f9c1178c4
commit fdfae74524
2 changed files with 2 additions and 3 deletions
+1 -2
View File
@@ -159,7 +159,6 @@ const reducer = (state: Record<string, NodeData>, action: Action) => {
};
export const useNodes = (config: Configuration) => {
const configCacheKey = config.hosts.join(' ');
const [clients, setClients] = useState<ClientCollection>({});
const [customNode, setCustomNode] = useState<undefined | string>();
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) {
+1 -1
View File
@@ -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.`
),
};
}