I want to perform some action on account change but the function keeps running for like 10 times
Moralis.onAccountsChanged(async (accounts) => {
//logout
console.log(accounts[0])
//const confirmed = confirm("Link this address to your account?");
//if (confirmed) {
// await Moralis.link(accounts[0]);
//}
});
this would log the address for like 10 times