Commit 4e568f7c authored by Matthew Taylor's avatar Matthew Taylor

use minLength instead

it’s the same thing :). Thanks @rschamp!
parent cec3214d
......@@ -12,9 +12,6 @@ module.exports.validations = {
notEqualsField: function (values, value, field) {
return value !== values[field];
},
checkboxRequired: function (values, value) {
return value.length > 0;
},
isPhone: function (values, value) {
if (typeof value === 'undefined') return true;
if (value && value.national_number === '+') return true;
......
......@@ -534,10 +534,10 @@ module.exports = {
options={this.getOrganizationOptions()}
onChange={this.onChooseOrganization}
validations={{
checkboxRequired: true
minLength: 1
}}
validationErrors={{
checkboxRequired: formatMessage({
minLength: formatMessage({
id: 'teacherRegistration.validationRequired'
})
}}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment