rename var

This commit is contained in:
danisharora099 2023-08-03 13:11:20 +05:30
parent 6654248738
commit 21c2d46436
No known key found for this signature in database
GPG Key ID: FBD2BF500037F135
1 changed files with 2 additions and 2 deletions

View File

@ -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(