mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-30 02:56:20 -05:00
Merge pull request #1127 from mewtaylor/issue/gh-1125
Fix GH-1125: get `formatMessage` from props
This commit is contained in:
commit
d38a2d89c9
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue