Skip to content

Commit

Permalink
Merge pull request #51662 from callstack-internal/fix/51654-second-ad…
Browse files Browse the repository at this point in the history
…dress-line-required-issue

[CP Staging] [#51654] - second address line required issue

(cherry picked from commit 12db47b)

(CP triggered by Beamanator)
  • Loading branch information
Beamanator authored and OSBotify committed Oct 29, 2024
1 parent 561b183 commit 19c27a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/MissingPersonalDetails/substeps/Address.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function AddressStep({isEditing, onNext, personalDetailsValues}: CustomSubStepPr

const validate = useCallback(
(values: FormOnyxValues<typeof ONYXKEYS.FORMS.PERSONAL_DETAILS_FORM>): FormInputErrors<typeof ONYXKEYS.FORMS.PERSONAL_DETAILS_FORM> => {
const errors = ValidationUtils.getFieldRequiredErrors(values, STEP_FIELDS);
const errors: FormInputErrors<typeof ONYXKEYS.FORMS.PERSONAL_DETAILS_FORM> = {};
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] ?? '';
Expand Down

0 comments on commit 19c27a0

Please sign in to comment.