diff --git a/src/components/atoms/Input/index.tsx b/src/components/atoms/Input/index.tsx index 72378b87a..c20d58d98 100644 --- a/src/components/atoms/Input/index.tsx +++ b/src/components/atoms/Input/index.tsx @@ -39,6 +39,7 @@ export default function Input(props: Partial): ReactElement { const { required, name, label, help, additionalComponent, field } = props const hasError = + props.form && props.form.touched[field.name] && typeof props.form.errors[field.name] === 'string'