Skip to content

Commit

Permalink
Merge pull request #44689 from eucool/patch-6
Browse files Browse the repository at this point in the history
Fixes issue: Bank account personal info isn't accepting characters with umlaut as name
  • Loading branch information
tgolen authored Jul 15, 2024
2 parents 99bdad9 + 3b5a40a commit ca0312a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ function FullName({reimbursementAccount, onNext, isEditing}: FullNameProps) {
const validate = useCallback(
(values: FormOnyxValues<typeof ONYXKEYS.FORMS.REIMBURSEMENT_ACCOUNT_FORM>): FormInputErrors<typeof ONYXKEYS.FORMS.REIMBURSEMENT_ACCOUNT_FORM> => {
const errors = ValidationUtils.getFieldRequiredErrors(values, STEP_FIELDS);
if (values.firstName && !ValidationUtils.isValidLegalName(values.firstName)) {
if (values.firstName && !ValidationUtils.isValidPersonName(values.firstName)) {
errors.firstName = translate('bankAccount.error.firstName');
}

if (values.lastName && !ValidationUtils.isValidLegalName(values.lastName)) {
if (values.lastName && !ValidationUtils.isValidPersonName(values.lastName)) {
errors.lastName = translate('bankAccount.error.lastName');
}
return errors;
Expand Down

0 comments on commit ca0312a

Please sign in to comment.