diff --git a/src/components/atoms/Input/index.tsx b/src/components/atoms/Input/index.tsx index 3d6b36f74..7ff57eb36 100644 --- a/src/components/atoms/Input/index.tsx +++ b/src/components/atoms/Input/index.tsx @@ -53,8 +53,7 @@ export default function Input(props: Partial): ReactElement { } = props const hasError = - props.form && - props.form.touched[field.name] && + props.form?.touched[field.name] && typeof props.form.errors[field.name] === 'string' const styleClasses = cx({ @@ -65,7 +64,7 @@ export default function Input(props: Partial): ReactElement { return (