diff --git a/UI/src/components/oauth-callback/index.js b/UI/src/components/oauth-callback/index.js
index a85a2ac..1db17e3 100644
--- a/UI/src/components/oauth-callback/index.js
+++ b/UI/src/components/oauth-callback/index.js
@@ -35,12 +35,12 @@ class OauthCallback extends Component {
const retry = async () => {
try {
const rsp = await superagent.get('/api/auth/user')
- this.setState({ notReady: false })
this.props.dispatch({
type: Symbol.for('set user'),
data: rsp.body
})
this.props.dispatch(fetchServers)
+ this.setState({ notReady: false })
} catch (e) {
counter++
if (counter > 100) {
@@ -69,7 +69,7 @@ class OauthCallback extends Component {
}
render () {
- return (this.state.notReady) ? this.state.message :
+ return (this.state.notReady) ? this.state.message :
}
}