levelkdev/futarchy-app

My positions doesn't work if not connected

Closed this issue · 4 comments

It makes sense, as the app doesn't know the address, but it would be nice to have an error message. Right now it's just a blank screen:

Screenshot from 2019-05-09 09-47-11

ewilz commented

we were hoping to take this a step further and notify the user whenever they're logged into a separate network than the Dapp. Is this possible within an aragon app to check the network of metamask?

Seeing as you're on using @aragon/api@1.1.0, yes, this is available.

- Get the network: app.network()
- This is an observable but really will only ever emit one value for now

  • Get the connected accounts: app.accounts()
    • This will emit every time the user changes their account

Ahh, actually there is no way to get the user's connected network, only the network the client is connected to (aragon/aragon.js#300)

ewilz commented

Fixed in #118