diff --git a/apps/scandic-web/app/[lang]/(live)/(public)/(contentTypes)/hotel_page/[uid]/page.tsx b/apps/scandic-web/app/[lang]/(live)/(public)/(contentTypes)/hotel_page/[uid]/page.tsx index c78019d27..6406b1c5d 100644 --- a/apps/scandic-web/app/[lang]/(live)/(public)/(contentTypes)/hotel_page/[uid]/page.tsx +++ b/apps/scandic-web/app/[lang]/(live)/(public)/(contentTypes)/hotel_page/[uid]/page.tsx @@ -1,12 +1,14 @@ import { cx } from "class-variance-authority" import { notFound } from "next/navigation" +import { env } from "@/env/server" import { getHotel, getHotelPage } from "@/lib/trpc/memoizedRequests" import HotelMapPage from "@/components/ContentType/HotelMapPage" import HotelPage from "@/components/ContentType/HotelPage" import HotelSubpage from "@/components/ContentType/HotelSubpage" import { getThemeByHotel } from "@/utils/theme" +import { DEFAULT_THEME } from "@/utils/theme/types" import styles from "./page.module.css" @@ -35,10 +37,9 @@ export default async function HotelPagePage( return notFound() } - const hotelTheme = getThemeByHotel( - hotelPageData.hotel_page_id, - hotelData.hotel.hotelType - ) + const hotelTheme = env.HOTEL_BRANDING + ? getThemeByHotel(hotelPageData.hotel_page_id, hotelData.hotel.hotelType) + : DEFAULT_THEME if (searchParams.subpage) { return (