summaryrefslogtreecommitdiffstats
path: root/webapp/components/login/login_controller.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/components/login/login_controller.jsx')
-rw-r--r--webapp/components/login/login_controller.jsx22
1 files changed, 9 insertions, 13 deletions
diff --git a/webapp/components/login/login_controller.jsx b/webapp/components/login/login_controller.jsx
index 482135a5e..34fdc536c 100644
--- a/webapp/components/login/login_controller.jsx
+++ b/webapp/components/login/login_controller.jsx
@@ -209,19 +209,15 @@ export default class LoginController extends React.Component {
}
finishSignin(team) {
- GlobalActions.emitInitialLoad(
- () => {
- const query = this.props.location.query;
- GlobalActions.loadDefaultLocale();
- if (query.redirect_to) {
- browserHistory.push(query.redirect_to);
- } else if (team) {
- browserHistory.push(`/${team.name}`);
- } else {
- GlobalActions.redirectUserToDefaultTeam();
- }
- }
- );
+ const query = this.props.location.query;
+ GlobalActions.loadDefaultLocale();
+ if (query.redirect_to) {
+ browserHistory.push(query.redirect_to);
+ } else if (team) {
+ browserHistory.push(`/${team.name}`);
+ } else {
+ GlobalActions.redirectUserToDefaultTeam();
+ }
}
handleLoginIdChange(e) {