web3modal
web3modal copied to clipboard
WEB3MODAL BREAKS DAPP WHEN USER REFUSES TO CONNECT WALLET
As seen in the attached screenshot, if a user rejects the option of connecting their wallet after the pop-up, the attached error is returned on the webpage.
how can i fix it
@Dayo-Adewuyi Wrap your code in a try...catch
and if an error occurs, handle it in a catch block.
A try-catch
block would certainly solve this issue. Appreciate your help @VitaliyShulik , closing this issue. Check out W3MV2 if you haven't :)