mirror of
https://github.com/status-im/js-waku-examples.git
synced 2025-02-26 21:50:46 +00:00
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 } =
|
||||
await node.connectionManager.getPeersByDiscovery();
|
||||
|
||||
@ -133,7 +133,7 @@ export const useNodePeers = (node: undefined | LightNode) => {
|
||||
);
|
||||
};
|
||||
|
||||
fetchData();
|
||||
initHookData();
|
||||
|
||||
return () => {
|
||||
node.connectionManager.removeEventListener(
|
||||
|
Loading…
x
Reference in New Issue
Block a user