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( const hotel = locations.data.find(
(location) => (location) =>
//@ts-ignore "operaId" in location && location.operaId == searchParams.hotel
location.operaId == searchParams.hotel
) )
if (!hotel) { if (!hotel) {
return notFound() return notFound()