Skip to content

Commit

Permalink
reverted unnecessarily changed line
Browse files Browse the repository at this point in the history
  • Loading branch information
burczu committed Oct 29, 2024
1 parent 6dd1c9e commit 82c4ab9
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 82c4ab9

Please sign in to comment.