mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-03-25 20:29:45 -04:00
get formatMessage
from props
Fixes #1125. I had fixed this last iteration, not sure how it got re-introduced.
This commit is contained in:
parent
e54b521cfd
commit
ccd6713ef1
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…
Add table
Reference in a new issue