From c96c8630708ed01ef72c4d85badb5de818df5f21 Mon Sep 17 00:00:00 2001 From: ghost2023 Date: Wed, 17 Jun 2026 09:57:46 +0300 Subject: [PATCH] fix --- .../portal/src/pages/bookings/new-booking-form/schema.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/apps/edr-freight-web/portal/src/pages/bookings/new-booking-form/schema.ts b/apps/edr-freight-web/portal/src/pages/bookings/new-booking-form/schema.ts index ef36292e5..dbf943068 100644 --- a/apps/edr-freight-web/portal/src/pages/bookings/new-booking-form/schema.ts +++ b/apps/edr-freight-web/portal/src/pages/bookings/new-booking-form/schema.ts @@ -170,13 +170,7 @@ export const bookingFormSchema = z ctx.addIssue({ code: "custom", path: ["cargoTypePath"], - message: "Select a freight type.", - }); - } else if (!data.cargoTypePath[1]) { - ctx.addIssue({ - code: "custom", - path: ["cargoTypePath"], - message: "Select a commodity.", + message: "Select a Cargo type.", }); } }