From ce3b7a6a49e26526e6bcc857e63bdb01d408732b Mon Sep 17 00:00:00 2001 From: Hrishikesh Vaipurkar Date: Fri, 22 Aug 2025 07:45:01 +0000 Subject: [PATCH] Merged in fix/SW-2846-bedtype-measurements- (pull request #2682) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix(SW-2846): Updated Bed Option to hide size when custom occupancy type * fix(SW-2846): Updated Bed Option to hide size when custom occupancy type Approved-by: Erik Tiekstra Approved-by: Matilda Landström --- .../HotelReservation/EnterDetails/BedType/index.tsx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/apps/scandic-web/components/HotelReservation/EnterDetails/BedType/index.tsx b/apps/scandic-web/components/HotelReservation/EnterDetails/BedType/index.tsx index affd352df..8f21b3dc3 100644 --- a/apps/scandic-web/components/HotelReservation/EnterDetails/BedType/index.tsx +++ b/apps/scandic-web/components/HotelReservation/EnterDetails/BedType/index.tsx @@ -6,6 +6,10 @@ import { FormProvider, useForm } from "react-hook-form" import { BED_TYPE_ICONS } from "@scandic-hotels/booking-flow/bedTypeIcons" import RadioCard from "@scandic-hotels/design-system/Form/RadioCard" +import { + BedTypeEnum, + type ExtraBedTypeEnum, +} from "@scandic-hotels/trpc/enums/bedType" import { useEnterDetailsStore } from "@/stores/enter-details" @@ -17,10 +21,6 @@ import { bedTypeFormSchema } from "./schema" import styles from "./bedOptions.module.css" import type { IconProps } from "@scandic-hotels/design-system/Icons" -import type { - BedTypeEnum, - ExtraBedTypeEnum, -} from "@scandic-hotels/trpc/enums/bedType" import type { BedTypeFormSchema } from "@/types/components/hotelReservation/enterDetails/bedType" @@ -101,7 +101,9 @@ export default function BedType() { disabled={!bedAvailable && !isSameBedAsSelected} id={roomType.value} name="bedType" - subtitle={width} + subtitle={ + roomType.type !== BedTypeEnum.CustomOccupancy ? width : null + } title={roomType.description} value={roomType.value} />