Merge pull request #1127 from mewtaylor/issue/gh-1125

Fix GH-1125: get `formatMessage` from props
This commit is contained in:
Matthew Taylor 2016-12-18 22:18:41 -05:00 committed by GitHub
commit d38a2d89c9

View file

@ -93,7 +93,7 @@ module.exports = {
callback = callback || function () {};
if (!username) {
this.refs.form.refs.formsy.updateInputsWithError({
'user.username': formatMessage({id: 'form.validationRequired'})
'user.username': this.props.intl.formatMessage({id: 'form.validationRequired'})
});
return callback(false);
}