Error messages

This commit is contained in:
bennylada 2021-05-25 19:14:17 +00:00
parent 0ab4c3bd60
commit 68c813013d
1 changed files with 3 additions and 3 deletions

View File

@ -51,13 +51,13 @@ const getters = {
return { invalid: false, msg: '' }
}
if (name === '') {
return { invalid: true, msg: this.$t('pages.userError.empty') }
return { invalid: true, msg: 'enter a name' }
}
if (name.length < 4) {
return { invalid: true, msg: this.$t('pages.userError.tooShort') }
return { invalid: true, msg: 'name too short' }
}
if (name.length > 35) {
return { invalid: true, msg: this.$t('pages.userError.tooLong') }
return { invalid: true, msg: 'name too long' }
}
return { invalid: false, msg: '' }
}