From a5f416c8780f8d4b6d44ccb03c16c96a9429ca0c Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Fri, 17 Jul 2020 21:34:14 +0200 Subject: [PATCH] non-formik form fix --- src/components/atoms/Input/index.tsx | 1 + 1 file changed, 1 insertion(+) 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'