fix: extend bedType to include discription and roomTypeCode

This commit is contained in:
Christel Westerberg
2024-11-05 16:40:00 +01:00
parent bf316fe0d0
commit a708eedfd4
8 changed files with 43 additions and 28 deletions

View File

@@ -57,7 +57,7 @@ import {
} from "./utils"
import { FacilityCardTypeEnum } from "@/types/components/hotelPage/facilities"
import type { BedType } from "@/types/components/hotelReservation/enterDetails/bedType"
import type { BedTypeSelection } from "@/types/components/hotelReservation/enterDetails/bedType"
import { AvailabilityEnum } from "@/types/components/hotelReservation/selectHotel/selectHotel"
import { BreakfastPackageEnum } from "@/types/enums/breakfast"
import type { RequestOptionsWithOutBody } from "@/types/fetch"
@@ -763,7 +763,7 @@ export const hotelQueryRouter = router({
}
}
})
.filter((bed): bed is BedType => Boolean(bed))
.filter((bed): bed is BedTypeSelection => Boolean(bed))
selectedRoomAvailabilitySuccessCounter.add(1, {
hotelId,