mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-23 07:38:07 -05:00
cover undefined
case as well
thanks @rschamp!
This commit is contained in:
parent
ffa249c3c5
commit
2e3aee25d9
1 changed files with 1 additions and 1 deletions
|
@ -91,7 +91,7 @@ module.exports = {
|
|||
},
|
||||
validateUsername: function (username, callback) {
|
||||
callback = callback || function () {};
|
||||
if (username.length < 1) {
|
||||
if (!username) {
|
||||
this.refs.form.refs.formsy.updateInputsWithError({
|
||||
'user.username': formatMessage({id: 'teacherRegistration.validationRequired'})
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue