mirror of
https://github.com/ZwareBear/awx.git
synced 2026-03-20 07:43:35 -05:00
Revert changes to isValid
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user