From 4a11833b4db543729c36a96f96da9feb1a3fbf1e Mon Sep 17 00:00:00 2001 From: Linus Flood Date: Wed, 27 Nov 2024 21:46:39 +0100 Subject: [PATCH] Refactor --- .../(live)/(public)/hotelreservation/(standard)/layout.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/[lang]/(live)/(public)/hotelreservation/(standard)/layout.tsx b/app/[lang]/(live)/(public)/hotelreservation/(standard)/layout.tsx index a8aeefed1..b846b3ec8 100644 --- a/app/[lang]/(live)/(public)/hotelreservation/(standard)/layout.tsx +++ b/app/[lang]/(live)/(public)/hotelreservation/(standard)/layout.tsx @@ -12,10 +12,7 @@ export default function HotelReservationLayout({ }: React.PropsWithChildren> & { sidePeek: React.ReactNode }) { - if ( - !env.ENABLE_BOOKING_FLOW && - !env.ENABLE_BOOKING_WIDGET_HOTELRESERVATION_PATH - ) { + if (!env.ENABLE_BOOKING_FLOW) { return notFound() } return (