From 9f58e600b6009b79a2b46d23a8971e225faab402 Mon Sep 17 00:00:00 2001 From: Adam Caouette Date: Tue, 18 Jan 2022 21:35:56 -0500 Subject: [PATCH] CSR-254: remove unused validation rules preventing form from valid status --- src/layouts/form-test/form-test.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/layouts/form-test/form-test.vue b/src/layouts/form-test/form-test.vue index 894c684ca..c3e0f0cdd 100644 --- a/src/layouts/form-test/form-test.vue +++ b/src/layouts/form-test/form-test.vue @@ -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) {