stellar-client icon indicating copy to clipboard operation
stellar-client copied to clipboard

Don't show rewards pane if api account is not found

Open irisli opened this issue 11 years ago • 1 comments

If a user creates an account using one fbgive api and then tries to log in with with the client pointed to another fbgive api, fbgive responds with {"status":"fail","message":"This update token is invalid.","code":"invalid_update_token"}.

When this happens the client shows a messed up reward pane. The reward pane should not show at all.

screen shot 2014-09-05 at 1 52 20 pm

irisli avatar Sep 05 '14 20:09 irisli

I disagree we should hide the reward panel in this scenario. Having a subtle failure behavior in this case is not desireable.

Instead, we should squawk loudly at you. "Error: your user information could not be retrieved" should show up as a flash message, or something similar.

This will only ever occur when a developer is toggling back and forth between environments, or has a misconfigured config.js, and so we should fail fast and hard so they know there is a problem to resolve.

nullstyle avatar Sep 05 '14 21:09 nullstyle