mirror of
https://github.com/logos-messaging/examples.waku.org.git
synced 2026-01-02 12:53:08 +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