feat(BOOK-488): Trimming booking code before validating
Approved-by: Bianca Widstam
This commit is contained in:
@@ -51,6 +51,7 @@ export const bookingCodeSchema = z
|
|||||||
.object({
|
.object({
|
||||||
value: z
|
value: z
|
||||||
.string()
|
.string()
|
||||||
|
.trim()
|
||||||
.refine(
|
.refine(
|
||||||
(value) =>
|
(value) =>
|
||||||
!value ||
|
!value ||
|
||||||
|
|||||||
Reference in New Issue
Block a user