rename var
This commit is contained in:
parent
6654248738
commit
21c2d46436
|
@ -100,7 +100,7 @@ export const useNodePeers = (node: undefined | LightNode) => {
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
const fetchData = async () => {
|
const initHookData = async () => {
|
||||||
const { CONNECTED, DISCOVERED } =
|
const { CONNECTED, DISCOVERED } =
|
||||||
await node.connectionManager.getPeersByDiscovery();
|
await node.connectionManager.getPeersByDiscovery();
|
||||||
|
|
||||||
|
@ -133,7 +133,7 @@ export const useNodePeers = (node: undefined | LightNode) => {
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
fetchData();
|
initHookData();
|
||||||
|
|
||||||
return () => {
|
return () => {
|
||||||
node.connectionManager.removeEventListener(
|
node.connectionManager.removeEventListener(
|
||||||
|
|
Loading…
Reference in New Issue