实现酒店上下文单酒店收口
This commit is contained in:
1 parent
7492c21350
commit
d69f3975ef
52 files changed
+1183
-188
No files matched your search
@@ -1,6 +1,6 @@
|
||||
const configuredReservationHotelId = import.meta.env.VITE_RESERVATION_HOTEL_ID?.trim()
|
||||
|
||||
export const reservationHotelId = configuredReservationHotelId || 'HOTEL-TEST'
|
||||
export const reservationHotelId = configuredReservationHotelId || null
|
||||
|
||||
let reservationHotelIdProvider: (() => string | null | undefined) | null = null
|
||||
|
||||
@@ -8,7 +8,7 @@ export function setReservationHotelIdProvider(provider: (() => string | null | u
|
||||
reservationHotelIdProvider = provider
|
||||
}
|
||||
|
||||
export function getReservationHotelId(): string {
|
||||
export function getReservationHotelId(): string | null {
|
||||
const providedHotelId = reservationHotelIdProvider?.()?.trim()
|
||||
return providedHotelId || reservationHotelId
|
||||
}
|
||||
Reference in new issue
Block a user