From f836695919bdb6edcd5ce2db509a833f1f189766 Mon Sep 17 00:00:00 2001 From: Hrishikesh Vaipurkar Date: Thu, 31 Oct 2024 16:11:19 +0100 Subject: [PATCH] feat/ SW-633 Optimized code --- .../(public)/hotelreservation/(standard)/select-rate/page.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/[lang]/(live)/(public)/hotelreservation/(standard)/select-rate/page.tsx b/app/[lang]/(live)/(public)/hotelreservation/(standard)/select-rate/page.tsx index 23e68164d..1e1787d75 100644 --- a/app/[lang]/(live)/(public)/hotelreservation/(standard)/select-rate/page.tsx +++ b/app/[lang]/(live)/(public)/hotelreservation/(standard)/select-rate/page.tsx @@ -28,8 +28,7 @@ export default async function SelectRatePage({ } const hotel = locations.data.find( (location) => - //@ts-ignore - location.operaId == searchParams.hotel + "operaId" in location && location.operaId == searchParams.hotel ) if (!hotel) { return notFound()