fixed issue where city and hotel is undefined or null
This commit is contained in:
@@ -15,8 +15,8 @@ import type {
|
||||
import type { Location } from "@/types/trpc/routers/hotel/locations"
|
||||
|
||||
interface HotelSearchDetails {
|
||||
city: Location
|
||||
hotel: Location
|
||||
city: Location | null
|
||||
hotel: Location | null
|
||||
urlSearchParams?: URLSearchParams
|
||||
adultsInRoom: number
|
||||
childrenInRoom?: string
|
||||
@@ -67,8 +67,8 @@ export async function getHotelSearchDetails({
|
||||
}
|
||||
|
||||
return {
|
||||
city: city!,
|
||||
hotel: hotel!,
|
||||
city: city ?? null,
|
||||
hotel: hotel ?? null,
|
||||
urlSearchParams,
|
||||
adultsInRoom,
|
||||
childrenInRoom,
|
||||
|
||||
Reference in New Issue
Block a user