Merge pull request #1129 from rschamp/bugfix/1124

Allow empty response, again
This commit is contained in:
Ray Schamp 2016-12-19 15:56:36 -05:00 committed by GitHub
commit cfc962adc1
2 changed files with 2 additions and 2 deletions

View file

@ -84,7 +84,7 @@ var StudentRegistration = intl.injectIntl(React.createClass({
if (body[0] && body[0].success) return this.advanceStep(formData);
this.setState({
registrationError:
body[0].msg ||
(body[0] && body[0].msg) ||
this.props.intl.formatMessage({id: 'registration.generalError'}) + ' (' + res.statusCode + ')'
});
}.bind(this));

View file

@ -75,7 +75,7 @@ var TeacherRegistration = React.createClass({
}
this.setState({
registrationError:
body[0].msg ||
(body[0] && body[0].msg) ||
this.props.intl.formatMessage({id: 'registration.generalError'}) + ' (' + res.statusCode + ')'
});
}.bind(this));