From b84a3153dee040dddf27d2358b7b1a60c6d5ad1a Mon Sep 17 00:00:00 2001 From: Riya Shete <156463907+eucool@users.noreply.github.com> Date: Mon, 1 Jul 2024 21:59:38 +0530 Subject: [PATCH] Update FullName.tsx --- .../ReimbursementAccount/PersonalInfo/substeps/FullName.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/ReimbursementAccount/PersonalInfo/substeps/FullName.tsx b/src/pages/ReimbursementAccount/PersonalInfo/substeps/FullName.tsx index bab467707fd4..90509a8cba06 100644 --- a/src/pages/ReimbursementAccount/PersonalInfo/substeps/FullName.tsx +++ b/src/pages/ReimbursementAccount/PersonalInfo/substeps/FullName.tsx @@ -39,11 +39,11 @@ function FullName({reimbursementAccount, onNext, isEditing}: FullNameProps) { const validate = useCallback( (values: FormOnyxValues): FormInputErrors => { 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;