1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-06-29 00:57:50 +02:00

non-formik form fix

This commit is contained in:
Matthias Kretschmann 2020-07-17 21:34:14 +02:00
parent f440e178dd
commit a5f416c878
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -39,6 +39,7 @@ export default function Input(props: Partial<InputProps>): 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'