avoid calling non-existing method

This commit is contained in:
Maximilian Schneider 2021-07-22 18:39:05 +02:00
parent ec42838b50
commit 65df589632
1 changed files with 1 additions and 3 deletions

View File

@ -91,9 +91,7 @@ export default function useWallet() {
})
})
return () => {
if (wallet) {
wallet.disconnect()
}
wallet?.disconnect?.()
setWalletStore((state) => {
state.connected = false
})