Skip to content

Commit

Permalink
Merge pull request #1129 from rschamp/bugfix/1124
Browse files Browse the repository at this point in the history
Allow empty response, again
  • Loading branch information
rschamp committed Dec 19, 2016
2 parents 9c8a7d5 + c901675 commit cfc962a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/views/studentregistration/studentregistration.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
2 changes: 1 addition & 1 deletion src/views/teacherregistration/teacherregistration.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit cfc962a

Please sign in to comment.