diff --git a/src/lib/features/properties/PropertyForm.tsx b/src/lib/features/properties/PropertyForm.tsx index cb2bdf2..4f34d4a 100644 --- a/src/lib/features/properties/PropertyForm.tsx +++ b/src/lib/features/properties/PropertyForm.tsx @@ -44,7 +44,7 @@ interface UrlParams { id: string; }; -interface FormValues { +export interface FormValues { propertyId: string; propertyName: string; propertyOrganization: string; @@ -279,23 +279,7 @@ const handleBack = () => { onSubmit={handleSubmit} > {({ values, errors, touched, handleChange, handleBlur, validateForm }) => { - const address = 'contactInfo.physicalLocation.address.'; - const touchedPostalCode = getIn(touched, `${address}postalCode`); - const touchedAddressLine = getIn(touched, `${address}addressLine`); - const touchedNumber = getIn(touched, `${address}number`); - const touchedAddressLine2 = getIn(touched, `${address}addressLine2`); - const touchedNeighborhood = getIn(touched, `${address}neighborhood`); - const touchedCityName = getIn(touched, `${address}cityName`); - const touchedStateProvinceCode = getIn(touched, `${address}stateProvinceCode`); - - const errorPostalCode = getIn(errors, `${address}postalCode`); - const errorAddressLine = getIn(errors, `${address}addressLine`); - const errorNumber = getIn(errors, `${address}number`); - const errorAddressLine2 = getIn(errors, `${address}addressLine2`); - const errorNeighborhood = getIn(errors, `${address}neighborhood`); - - const errorCityName = getIn(errors, `${address}cityName`); - const errorStateProvinceCode = getIn(errors, `${address}stateProvinceCode`); + return (