From 19c27a0f21781651ba8cd16a1482b718367d0061 Mon Sep 17 00:00:00 2001 From: Alex Beaman Date: Tue, 29 Oct 2024 17:48:59 +0300 Subject: [PATCH] Merge pull request #51662 from callstack-internal/fix/51654-second-address-line-required-issue [CP Staging] [#51654] - second address line required issue (cherry picked from commit 12db47b9d0ba5ba513d0a1444fa74f52a0336531) (CP triggered by Beamanator) --- src/pages/MissingPersonalDetails/substeps/Address.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/MissingPersonalDetails/substeps/Address.tsx b/src/pages/MissingPersonalDetails/substeps/Address.tsx index a9e74574d5f9..011d7e63cc55 100644 --- a/src/pages/MissingPersonalDetails/substeps/Address.tsx +++ b/src/pages/MissingPersonalDetails/substeps/Address.tsx @@ -39,7 +39,7 @@ function AddressStep({isEditing, onNext, personalDetailsValues}: CustomSubStepPr const validate = useCallback( (values: FormOnyxValues): FormInputErrors => { - const errors = ValidationUtils.getFieldRequiredErrors(values, STEP_FIELDS); + const errors: FormInputErrors = {}; const addressRequiredFields = [INPUT_IDS.ADDRESS_LINE_1, INPUT_IDS.CITY, INPUT_IDS.COUNTRY, INPUT_IDS.STATE] as const; addressRequiredFields.forEach((fieldKey) => { const fieldValue = values[fieldKey] ?? '';