feat/ SW-633 Optimized code
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user