Describe the bug
This is the code I have for Confirmpassword validation:
confirmPassword: yup.string() .oneOf([yup.ref('password')], 'Passwords should match.')
But when I only type password and don't type anything in confirmPassword field,(Empty confirmPassword). I don't get the error of "Passwords should match"
Expected behavior
I should get error of Password should match
Platform (please complete the following information):
Describe the bug This is the code I have for Confirmpassword validation:
confirmPassword: yup.string() .oneOf([yup.ref('password')], 'Passwords should match.')
But when I only type password and don't type anything in confirmPassword field,(Empty confirmPassword). I don't get the error of "Passwords should match"
Expected behavior I should get error of Password should match
Platform (please complete the following information):