get formatMessage from props

Fixes . I had fixed this last iteration, not sure how it got re-introduced.
This commit is contained in:
Matthew Taylor 2016-12-18 22:08:17 -05:00
parent e54b521cfd
commit ccd6713ef1

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);
}