Remove non-null assertion on wallet connect instance (#4)
This commit is contained in:
parent
c7310b8e6d
commit
8f796ca57b
@ -22,7 +22,7 @@ export default function WalletConnect() {
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
const sessions = web3wallet!.getActiveSessions();
|
||||
const sessions = web3wallet?.getActiveSessions() || {};
|
||||
setActiveSessions(sessions);
|
||||
}, [setActiveSessions]);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user