fix: lint
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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.`
|
||||
),
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user