From dc201bf8ed7cb6d1b9b2d62d9488a90204b3bc5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matilda=20Landstr=C3=B6m?= Date: Mon, 5 May 2025 09:53:02 +0000 Subject: [PATCH] Merged in fix/SW-2598-gym (pull request #1942) fix(SW-2598): gym opening hours * fix(SW-2598): gym opening hours Approved-by: Erik Tiekstra --- .../SidePeeks/WellnessAndExercise/Facility/index.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/scandic-web/components/ContentType/HotelPage/SidePeeks/WellnessAndExercise/Facility/index.tsx b/apps/scandic-web/components/ContentType/HotelPage/SidePeeks/WellnessAndExercise/Facility/index.tsx index fcb3f2811..adc83c1fb 100644 --- a/apps/scandic-web/components/ContentType/HotelPage/SidePeeks/WellnessAndExercise/Facility/index.tsx +++ b/apps/scandic-web/components/ContentType/HotelPage/SidePeeks/WellnessAndExercise/Facility/index.tsx @@ -17,7 +17,7 @@ export default async function Facility({ data }: FacilityProps) { const shortDescription = data.content.texts.descriptions?.short const isExternalGym = data.type === "Gym" && - data?.details.find((d) => d.name === "ExternalGym")?.value + data.details.find((d) => d.name === "ExternalGym")?.value === "True" return (
@@ -34,7 +34,7 @@ export default async function Facility({ data }: FacilityProps) {

{translateWellnessType(data.type, intl)}

- {!isExternalGym ? ( + {isExternalGym ? null : (

@@ -80,7 +80,7 @@ export default async function Facility({ data }: FacilityProps) {

- ) : null} + )} {shortDescription ? (

{shortDescription}