I am trying to detect when a user changes the accounts in the wallet currently im using
const { Moralis } = useMoralis();
Moralis.Web3.onAccountsChanged(function (accounts) {
console.log(accounts[0])
});
This work fine for metamsk browser extension but if I connect using walletconnect and change the accounts from the mobile phone it doesn’t detect the changes. Is there something missing here