Skip to content

Commit

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

[CP Staging] [Expensify#51654] - second address line required issue
  • Loading branch information
Beamanator authored Oct 29, 2024
2 parents 57d5a0c + 82c4ab9 commit 12db47b
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 12db47b

Please sign in to comment.