My Code
try {
this.user = await Moralis.authenticate({
signingMessage: "Test"
})
window.ethereum.request({
method: 'wallet_switchEthereumChain',
params: [{
chainId: '0x38'
}],
});
} catch (error) {
alert('Error: ' + error.message)
}
},
the error occur when new user ( unconnected wallet ) open my dapp from TrustWallet and click connect wallet but when the popup to connect wallet the user click back and then click connect again the error occur and they cant connect until page reload
any solution for this issue ?