avoid calling non-existing method
This commit is contained in:
parent
ec42838b50
commit
65df589632
|
@ -91,9 +91,7 @@ export default function useWallet() {
|
|||
})
|
||||
})
|
||||
return () => {
|
||||
if (wallet) {
|
||||
wallet.disconnect()
|
||||
}
|
||||
wallet?.disconnect?.()
|
||||
setWalletStore((state) => {
|
||||
state.connected = false
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue