diff --git a/dapps/react-dapp-v2/src/contexts/ClientContext.tsx b/dapps/react-dapp-v2/src/contexts/ClientContext.tsx index 81ee2d3..fde9d1e 100644 --- a/dapps/react-dapp-v2/src/contexts/ClientContext.tsx +++ b/dapps/react-dapp-v2/src/contexts/ClientContext.tsx @@ -190,6 +190,12 @@ export function ClientContextProvider({ children }: { children: ReactNode | Reac setPairings(_client.pairing.topics); }); + _client.on(CLIENT_EVENTS.session.updated, (updatedSession: SessionTypes.Settled) => { + console.log("EVENT", "session_updated"); + setChains(updatedSession.permissions.blockchain.chains); + setAccounts(updatedSession.state.accounts); + }); + _client.on(CLIENT_EVENTS.session.deleted, () => { console.log("EVENT", "session_deleted"); resetApp();