Skip to content

Commit

Permalink
fix: Declarant form phone number error wording (#2145)
Browse files Browse the repository at this point in the history
  • Loading branch information
arturlg authored Feb 21, 2024
1 parent d9a8d7c commit 2f1f11c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/app/src/common/utils/form.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,12 @@ export const zodEmail = z.string().superRefine(zodValueObjectSuperRefine(Email))
export const zodPhone = z
.string()
.nonempty("Le numéro de téléphone est requis")
.superRefine(zodValueObjectSuperRefine(FrenchPhoneNumber, "Le numéro de téléphone est invalide"));
.superRefine(
zodValueObjectSuperRefine(
FrenchPhoneNumber,
"Le numéro de téléphone est invalide et doit être saisi sous le format 0122334455",
),
);

export type RadioInputValueType = z.infer<typeof zodRadioInputSchema>;

Expand Down

0 comments on commit 2f1f11c

Please sign in to comment.