fix(SW-188): use brackets for if body

This commit is contained in:
Chuma McPhoy
2024-08-20 17:32:59 +02:00
parent f4586ba35b
commit 78057ce295

View File

@@ -24,7 +24,9 @@ export default async function HotelPage() {
language: lang, language: lang,
include: ["RoomCategories"], include: ["RoomCategories"],
}) })
if (!hotelData) return null if (!hotelData) {
return null
}
const { hotel, roomCategories } = hotelData const { hotel, roomCategories } = hotelData
return ( return (