Skip to content

Commit

Permalink
Revert changes to isValid
Browse files Browse the repository at this point in the history
  • Loading branch information
mabashian committed Jan 6, 2021
1 parent e078163 commit 44c68c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion awx/ui_next/src/components/FormField/PasswordField.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 44c68c2

Please sign in to comment.