diff --git a/domains/DataCollection/Forms/IdentificationForm/index.js b/domains/DataCollection/Forms/IdentificationForm/index.js index 68fb2c7dd..702c2e85d 100644 --- a/domains/DataCollection/Forms/IdentificationForm/index.js +++ b/domains/DataCollection/Forms/IdentificationForm/index.js @@ -62,9 +62,9 @@ const IdentificationForm = ({ const formObject = values; formObject.surveyingOrganization = surveyingOrganization; formObject.surveyingUser = surveyingUser; - formObject.latitude = values.location.latitude; - formObject.longitude = values.location.longitude; - formObject.altitude = values.location.altitude; + formObject.latitude = values.location?.latitude || 0; + formObject.longitude = values.location?.longitude || 0; + formObject.altitude = values.location?.altitude || 0; formObject.dob = `${values.Month || '00'}/${values.Day || '00'}/${values.Year || '0000'}`; @@ -120,14 +120,14 @@ const IdentificationForm = ({ {formikProps.isSubmitting ? ( ) : ( - - // - )} + + // + )} )}