From fb62e0ec2caf55ac0d4e97e43e16abd8ebf279d5 Mon Sep 17 00:00:00 2001 From: mabashian Date: Wed, 6 Jan 2021 16:06:08 -0500 Subject: [PATCH] Revert changes to isValid --- awx/ui_next/src/components/FormField/PasswordField.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/ui_next/src/components/FormField/PasswordField.jsx b/awx/ui_next/src/components/FormField/PasswordField.jsx index fcba330c8c..44ebe5f889 100644 --- a/awx/ui_next/src/components/FormField/PasswordField.jsx +++ b/awx/ui_next/src/components/FormField/PasswordField.jsx @@ -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 (