From c4759249b646c941922486abc39f64e67315e01c Mon Sep 17 00:00:00 2001 From: Ben Kremer Date: Thu, 17 Mar 2022 15:02:23 +0100 Subject: [PATCH] refactor(dapp-v2): rename `resetApp` -> `reset` --- dapps/react-dapp-v2/src/contexts/ClientContext.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dapps/react-dapp-v2/src/contexts/ClientContext.tsx b/dapps/react-dapp-v2/src/contexts/ClientContext.tsx index e709d26..cb1c2c5 100644 --- a/dapps/react-dapp-v2/src/contexts/ClientContext.tsx +++ b/dapps/react-dapp-v2/src/contexts/ClientContext.tsx @@ -64,7 +64,7 @@ export function ClientContextProvider({ children }: { children: ReactNode | Reac const [solanaPublicKeys, setSolanaPublicKeys] = useState>(); const [chains, setChains] = useState([]); - const resetApp = () => { + const reset = () => { setPairings([]); setSession(undefined); setBalances({}); @@ -208,7 +208,7 @@ export function ClientContextProvider({ children }: { children: ReactNode | Reac _client.on(CLIENT_EVENTS.session.deleted, () => { console.log("EVENT", "session_deleted"); - resetApp(); + reset(); }); }, [onSessionConnected],