trufflesuite / drizzle

Reactive Ethereum dapp UI suite
907 stars 238 forks source link

Handle user denying access to his account #108

Open wissalHaji opened 3 years ago

wissalHaji commented 3 years ago

Hi, I'm trying to handle the case where the user denies access to his account when initializing web3, but when I check the web3 status in the state, it's set to failed. I tried to dig in the code and I found out that the action WEB3_USER_DENIED should be dispatched in the catch block of ethereum.enable() instead of WEB3_FAILED. If you can please make that change.