I have the following code to get Account change approved by user.
Moralis.onAccountChanged( async (account) => {
const confirmed = confirm("Link this account?");
if (confirmed) {
await Moralis.link(account);
}
});
It works fine, but the issue still remains.
Signature request is not approved. So there is no “Sign” button pops up.
I have to click on the Metamask icon to get “Sign” modal.
This is bad UI for users because they are not prompted to the “Sign” .
Anyone has same issue?