From 8f796ca57b8861b708e39ae9e5afeed63e12de85 Mon Sep 17 00:00:00 2001 From: shreerang6921 <68148922+shreerang6921@users.noreply.github.com> Date: Fri, 26 Jul 2024 16:31:18 +0530 Subject: [PATCH] Remove non-null assertion on wallet connect instance (#4) --- src/screens/WalletConnect.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/screens/WalletConnect.tsx b/src/screens/WalletConnect.tsx index fc0e489..c0e80d9 100644 --- a/src/screens/WalletConnect.tsx +++ b/src/screens/WalletConnect.tsx @@ -22,7 +22,7 @@ export default function WalletConnect() { }; useEffect(() => { - const sessions = web3wallet!.getActiveSessions(); + const sessions = web3wallet?.getActiveSessions() || {}; setActiveSessions(sessions); }, [setActiveSessions]);