From dc18589afe169370f5347dcbf0ed2a09be007f5f Mon Sep 17 00:00:00 2001 From: Bianca Widstam Date: Mon, 5 Jan 2026 09:21:30 +0000 Subject: [PATCH] Merged in fix/isostring-error (pull request #3386) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix: isostring * fix: isostring Approved-by: Joakim Jäderberg --- .../trpc/lib/routers/hotels/schemas/hotel/specialAlerts.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/trpc/lib/routers/hotels/schemas/hotel/specialAlerts.ts b/packages/trpc/lib/routers/hotels/schemas/hotel/specialAlerts.ts index 338964fd3..1485d0ac0 100644 --- a/packages/trpc/lib/routers/hotels/schemas/hotel/specialAlerts.ts +++ b/packages/trpc/lib/routers/hotels/schemas/hotel/specialAlerts.ts @@ -29,7 +29,7 @@ export const specialAlertsSchema = z text: alert.description || null, type: AlertTypeEnum.Info, displayInBookingFlow: alert.displayInBookingFlow, - endDate: dt.utc(alert.endDate).toISOString(), - startDate: dt.utc(alert.startDate).toISOString(), + endDate: alert.endDate ? dt.utc(alert.endDate).toISOString() : null, + startDate: alert.startDate ? dt.utc(alert.startDate).toISOString() : null, })) )