Skip to content

Commit

Permalink
Merge pull request #1475 from Shelf-nu/fix-wrong-validation-message
Browse files Browse the repository at this point in the history
fix: wrong validation message when adding to existing booking
  • Loading branch information
DonKoko authored Dec 3, 2024
2 parents 3656b6d + 8081d78 commit 6264635
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const updateBookingSchema = z.object({
if (!val && val === "") {
ctx.addIssue({
code: z.ZodIssueCode.custom,
message: "Please select a custodian",
message: "Please select a booking",
});
return z.NEVER;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const updateBookingSchema = z.object({
if (!val && val === "") {
ctx.addIssue({
code: z.ZodIssueCode.custom,
message: "Please select a custodian",
message: "Please select a booking",
});
return z.NEVER;
}
Expand Down

0 comments on commit 6264635

Please sign in to comment.