From 09cf5a5cb91f0868fddcf59acede9953b207fbcd Mon Sep 17 00:00:00 2001 From: theborakompanioni Date: Thu, 12 Sep 2024 16:12:03 +0200 Subject: [PATCH] ui(earn): validate minsize on mount of form --- src/components/Earn.tsx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/components/Earn.tsx b/src/components/Earn.tsx index 17c2683a..9c9b3dcc 100644 --- a/src/components/Earn.tsx +++ b/src/components/Earn.tsx @@ -276,7 +276,15 @@ const EarnForm = ({ } return ( - + {(props) => { const { handleSubmit, setFieldValue, handleBlur, values, touched, errors, isSubmitting } = props const minsizeField = props.getFieldProps('minsize')