CSR-254: remove unused validation rules preventing form from valid status
This commit is contained in:
parent
dd99a541ec
commit
9f58e600b6
1 changed files with 5 additions and 5 deletions
|
|
@ -266,7 +266,7 @@ export default {
|
|||
.min(17, errorMessages.demo3)
|
||||
.max(17, errorMessages.demo3)
|
||||
.matches('^[^IOQ]+$', errorMessages.demo3),
|
||||
demo4: Yup.string().matches('^[0-9]*$', errorMessages.demo4),
|
||||
// demo4: Yup.string().matches('^[0-9]*$', errorMessages.demo4),
|
||||
demo5: Yup.array().required(errorMessages.demo5).min(1, errorMessages.demo5),
|
||||
demo6: Yup.string()
|
||||
.when('demo5', function (demo5, schema, value) {
|
||||
|
|
@ -282,10 +282,10 @@ export default {
|
|||
}),
|
||||
demoX: Yup.string().notRequired(),
|
||||
// PASSWORD EXAMPLE, NOT BEING USED NOW
|
||||
password: Yup.string().min(6).required(),
|
||||
passwordConfirmation: Yup.string()
|
||||
.required()
|
||||
.oneOf([Yup.ref("password")], "Passwords do not match"),
|
||||
// password: Yup.string().min(6).required(),
|
||||
// passwordConfirmation: Yup.string()
|
||||
// .required()
|
||||
// .oneOf([Yup.ref("password")], "Passwords do not match"),
|
||||
}).test('repair-replace-conflict',
|
||||
null, // need to pass null as error message so it won't get added to list of errors
|
||||
function(value) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue