From 6a4ac388f4f21f424265f514a35584a2605504ef Mon Sep 17 00:00:00 2001 From: Katalina / stardust Date: Wed, 17 Jan 2018 23:33:08 -0600 Subject: [PATCH] fix possible URL replacement bug in oauth callback --- UI/src/components/oauth-callback/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 : } }