Merge pull request #1097 from rgarmsen2295/plt-693

PLT-693 Fixes back button on username page during team signup when email is turned off
This commit is contained in:
Joram Wilander
2015-10-17 12:15:56 -04:00

View File

@@ -15,7 +15,12 @@ export default class TeamSignupUsernamePage extends React.Component {
}
submitBack(e) {
e.preventDefault();
this.props.state.wizard = 'send_invites';
if (global.window.config.SendEmailNotifications === 'true') {
this.props.state.wizard = 'send_invites';
} else {
this.props.state.wizard = 'team_url';
}
this.props.updateParent(this.props.state);
}
submitNext(e) {