Revert changes to isValid

This commit is contained in:
mabashian 2021-01-06 16:06:08 -05:00
parent 448e49ae43
commit fb62e0ec2c

View File

@ -8,7 +8,7 @@ import PasswordInput from './PasswordInput';
function PasswordField(props) {
const { id, name, label, validate, isRequired, helperText } = props;
const [, meta] = useField({ name, validate });
const isValid = !meta.touched || (meta.value && meta.value !== '');
const isValid = !(meta.touched && meta.error);
return (
<FormGroup