Skip to content

Commit

Permalink
validation fix
Browse files Browse the repository at this point in the history
  • Loading branch information
DovMa committed Oct 20, 2023
1 parent fc8abf1 commit 74a5168
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/validations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export const validateMyProfile = Yup.object().shape({

export const validateFishStocking = Yup.object().shape({
location: Yup.object().required(validationTexts.requireText),
eventTime: Yup.date().required(validationTexts.requireText),
eventTime: Yup.date().required(validationTexts.requireText).typeError(validationTexts.requireText),
assignedTo: Yup.object().required(validationTexts.requireText).nullable(),
phone: Yup.string()
.required(validationTexts.requireText)
Expand Down Expand Up @@ -85,7 +85,7 @@ export const validateFishStocking = Yup.object().shape({

export const validateFreelancerFishStocking = Yup.object().shape({
location: Yup.object().required(validationTexts.requireText),
eventTime: Yup.date().required(validationTexts.requireText),
eventTime: Yup.date().required(validationTexts.requireText).typeError(validationTexts.requireText),
batches: Yup.array().of(
Yup.object().shape({
fishType: Yup.object().required(validationTexts.requireSelect).nullable(),
Expand Down

0 comments on commit 74a5168

Please sign in to comment.