fix(SW-978) Checks for null data on hotels

This commit is contained in:
Pontus Dreij
2024-11-26 13:55:44 +01:00
parent 4de3f4717c
commit 3d78bdd671
10 changed files with 54 additions and 26 deletions

View File

@@ -18,3 +18,7 @@ export type HotelData = {
hotelData: Hotel
price: ProductType
}
export interface NullableHotelData extends Omit<HotelData, "hotelData"> {
hotelData: HotelData["hotelData"] | null
}

View File

@@ -56,7 +56,7 @@ export interface HotelCardDialogProps {
}
export interface HotelCardDialogListingProps {
hotels: HotelData[]
hotels: HotelData[] | null
activeCard: string | null | undefined
onActiveCardChange: (hotelName: string | null) => void
}