Skip to content

Commit

Permalink
use generic field error msg
Browse files Browse the repository at this point in the history
  • Loading branch information
rajku-dev committed Feb 13, 2025
1 parent 123c8cb commit 2219970
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion public/locale/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1617,7 +1617,6 @@
"phone_number_at_current_facility": "Phone Number of Contact person at current Facility",
"phone_number_min_error": "Phone number must be at least 10 characters long",
"phone_number_not_found": "Phone number not found",
"phone_number_required": "Phone number is required",
"phone_number_validation_error": "Entered phone number is not valid",
"phone_number_verified": "Phone Number Verified",
"pick_a_date": "Pick a date",
Expand Down
2 changes: 1 addition & 1 deletion src/Utils/validators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default () => ({

required: z
.string()
.min(1, { message: t("phone_number_required") })
.min(1, { message: t("field_required") })
.refine((val) => isValidPhoneNumber(val), {
message: t("phone_number_validation_error"),
}),
Expand Down

0 comments on commit 2219970

Please sign in to comment.