Skip to content

Commit

Permalink
drop key edit
Browse files Browse the repository at this point in the history
  • Loading branch information
rajku-dev committed Feb 13, 2025
1 parent d8799d1 commit af59c8c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/Utils/validators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,21 @@ export default () => ({

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

coordinates: {
latitude: z
.number()
.min(-90, { message: t("invalid_latitude") })
.max(90, { message: t("invalid_latitude") }),
.min(-90, t("invalid_latitude"))
.max(90, t("invalid_latitude")),

longitude: z
.number()
.min(-180, { message: t("invalid_longitude") })
.max(180, { message: t("invalid_longitude") }),
.min(-180, t("invalid_longitude"))
.max(180, t("invalid_longitude")),
},
});

0 comments on commit af59c8c

Please sign in to comment.