feat/ SW-633 Optimized code

This commit is contained in:
Hrishikesh Vaipurkar
2024-10-31 16:11:19 +01:00
parent bb8f09ed88
commit f836695919

View File

@@ -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()