forked from cerc-io/laconic-wallet-web
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(() => {
|
useEffect(() => {
|
||||||
const sessions = web3wallet!.getActiveSessions();
|
const sessions = web3wallet?.getActiveSessions() || {};
|
||||||
setActiveSessions(sessions);
|
setActiveSessions(sessions);
|
||||||
}, [setActiveSessions]);
|
}, [setActiveSessions]);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user