[bug] modal.subscribeEvents
returns CONNECT_SUCCESS
event after wallet rejects connection
#2143
Labels
modal.subscribeEvents
returns CONNECT_SUCCESS
event after wallet rejects connection
#2143
Link to minimal reproducible example
https://codesandbox.io/p/sandbox/blazing-wave-8pymf7
Summary
When the web3modal opens and a user clicks MetaMask, if a user rejects the MetaMask connection,
modal.subscribeEvents
returns aCONNECT_SUCCESS
event, I believe it should beCONNECT_ERROR
.See the codesandbox to reproduce.
List of related npm package versions
ethers@5.7.2
@web3modal/ethers5@4.1.6
The text was updated successfully, but these errors were encountered: