Skip to content

Commit

Permalink
fix(front-938): number are not allowed in web banking membership invi…
Browse files Browse the repository at this point in the history
…tation form (#682)
  • Loading branch information
Nicolas Comont authored Apr 9, 2024
1 parent cfbf2dc commit 6edea6c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions clients/banking/src/components/NewMembershipWizard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ import { projectConfiguration } from "../utils/projectId";
import { Router } from "../utils/routes";
import {
validateAddressLine,
validateBeneficiaryName,
validateBirthdate,
validateEmail,
validateName,
validateRequired,
} from "../utils/validations";

Expand Down Expand Up @@ -164,13 +164,13 @@ export const NewMembershipWizard = ({
firstName: {
initialValue: partiallySavedValues?.firstName ?? "",
strategy: "onBlur",
validate: validateBeneficiaryName,
validate: validateName,
sanitize: value => value.trim(),
},
lastName: {
initialValue: partiallySavedValues?.lastName ?? "",
strategy: "onBlur",
validate: validateBeneficiaryName,
validate: validateName,
sanitize: value => value.trim(),
},
birthDate: {
Expand Down

0 comments on commit 6edea6c

Please sign in to comment.