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