mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 10:00:01 -03:30
Revert changes to isValid
This commit is contained in:
parent
448e49ae43
commit
fb62e0ec2c
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user