From 21c2d4643669b0531f9f7b3c1744b36ea6de054b Mon Sep 17 00:00:00 2001 From: danisharora099 Date: Thu, 3 Aug 2023 13:11:20 +0530 Subject: [PATCH] rename var --- examples/web-chat/src/hooks.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/web-chat/src/hooks.ts b/examples/web-chat/src/hooks.ts index 09dde46..5f38677 100644 --- a/examples/web-chat/src/hooks.ts +++ b/examples/web-chat/src/hooks.ts @@ -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(