From 29d1721a8a8a0624576e78210e541c757cd4cc5f Mon Sep 17 00:00:00 2001 From: Linus Flood Date: Thu, 9 Jan 2025 08:39:15 +0100 Subject: [PATCH] hotfix: hide booking widget on public pages --- app/[lang]/(live)/@bookingwidget/[contentType]/[uid]/page.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/[lang]/(live)/@bookingwidget/[contentType]/[uid]/page.tsx b/app/[lang]/(live)/@bookingwidget/[contentType]/[uid]/page.tsx index 6951d700a..2f3916668 100644 --- a/app/[lang]/(live)/@bookingwidget/[contentType]/[uid]/page.tsx +++ b/app/[lang]/(live)/@bookingwidget/[contentType]/[uid]/page.tsx @@ -11,7 +11,9 @@ export default async function BookingWidgetPage({ params, searchParams, }: PageArgs) { - if (!env.ENABLE_BOOKING_WIDGET_HOTELRESERVATION_PATH) return null + if (!env.ENABLE_BOOKING_WIDGET) { + return null + } preload()