diff --git a/client/src/components/formHelpers/form-fields.tsx b/client/src/components/formHelpers/form-fields.tsx index 39cc2167bdc..a90f3ce4e82 100644 --- a/client/src/components/formHelpers/form-fields.tsx +++ b/client/src/components/formHelpers/form-fields.tsx @@ -116,16 +116,11 @@ function FormFields({ formFields, options }: FormFieldsProps): JSX.Element { required={required.includes(name)} rows={4} type={types[name] || 'text'} - value={value as string} + value={value} aria-describedby={`${name}-message`} data-playwright-test-label={`${name}-form-control`} /> - {nullOrWarning( - value as string, - !pristine && error, - isURL, - name - )} + {nullOrWarning(value, !pristine && error, isURL, name)} ); }} diff --git a/client/src/components/formHelpers/form.tsx b/client/src/components/formHelpers/form.tsx index e30776b21ba..edf69a35f6f 100644 --- a/client/src/components/formHelpers/form.tsx +++ b/client/src/components/formHelpers/form.tsx @@ -1,4 +1,4 @@ -import React, { FormEvent } from 'react'; +import React from 'react'; import { Form } from 'react-final-form'; import normalizeUrl from 'normalize-url'; @@ -126,13 +126,15 @@ export const StrictSolutionForm = ({ {({ handleSubmit, pristine, error }) => (