Remove non-null assertion on wallet connect instance (#4)

This commit is contained in:
shreerang6921 2024-07-26 16:31:18 +05:30 committed by GitHub
parent c7310b8e6d
commit 8f796ca57b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -22,7 +22,7 @@ export default function WalletConnect() {
};
useEffect(() => {
const sessions = web3wallet!.getActiveSessions();
const sessions = web3wallet?.getActiveSessions() || {};
setActiveSessions(sessions);
}, [setActiveSessions]);