liftedinit / alberto

A crypto wallet for any ledger supporting the Many protocol
https://alberto.app
Apache License 2.0
6 stars 7 forks source link

Display toast/alert on web3auth connect errors #141

Open jgryffindor opened 1 year ago

jgryffindor commented 1 year ago

We're getting the following error on social login when a login fails to connect to web3auth. As of now, there's only a console error message when this happens. We should display a toast or alert to the user when there is a connection error and provide instructions such as refresh your browser, retry, etc.

https://github.com/liftedinit/alberto/blob/3b8894ac14cb3aeb0fd5c3d4ed71ac2996770ab8/src/features/accounts/components/social-login/social-login.tsx#L101

social-login.tsx:101 connectTo error WalletLoginError: Wallet is not connectedNo wallet is connected

connectTo error WalletLoginError: Wallet is not connectedNo wallet is connected
    at Function.value (index.ts:143:12)
    at Function.value (index.ts:155:29)
    at r.<anonymous> (core.ts:175:104)
    at d (regeneratorRuntime.js:72:17)
    at Generator._invoke (regeneratorRuntime.js:55:24)
    at Generator.next (regeneratorRuntime.js:97:21)
    at r (asyncToGenerator.js:3:20)
    at s (asyncToGenerator.js:22:9)
    at asyncToGenerator.js:27:7
    at new Promise (<anonymous>)