Merged in feat/SW-2033-implement-new-room-feature-request (pull request #1665)
feat(SW-2033): Added new route for fetching room features, and merged the data with existing availability data * feat(SW-2033): Added new route for fetching room features, and merged the data with existing availability data * fix: issue with total price not including room features * fix: add return null * fix * fix * fixes from PR feedback Approved-by: Arvid Norlin
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { RoomPackageCodeEnum } from "@/types/components/hotelReservation/selectRate/roomFilter"
|
||||
import type { AvailabilityError } from "@/types/stores/rates"
|
||||
import type {
|
||||
Product,
|
||||
@@ -78,3 +79,11 @@ export function findSelectedRate(
|
||||
return findProductInRoom(rateCode, room)
|
||||
})
|
||||
}
|
||||
|
||||
export function isRoomPackageCode(
|
||||
code: string | null
|
||||
): code is RoomPackageCodeEnum {
|
||||
return Object.values(RoomPackageCodeEnum).includes(
|
||||
code as RoomPackageCodeEnum
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user