Merged in fix/SW-2853-tracking-breakfast-ancillaries (pull request #2188)
fix(SW-2853): tracking for breakfast ancillaries * fix(SW-2853): tracking for breakfast ancillaries * fix(SW-2853): viewAncillary event fix for breakfast * fix(SW-2853): pr comment spread room facilities Approved-by: Tobias Johansson
This commit is contained in:
@@ -3,6 +3,7 @@ import type {
|
||||
SelectedAncillary,
|
||||
} from "@/types/components/myPages/myStay/ancillaries"
|
||||
import type { AncillaryFormData } from "@/components/HotelReservation/MyStay/Ancillaries/AddAncillaryFlow/schema"
|
||||
import type { BreakfastData } from "@/stores/my-stay/add-ancillary-flow"
|
||||
|
||||
export const generateDeliveryOptions = () => {
|
||||
const timeSlots = ["16:00-17:00", "17:00-18:00", "18:00-19:00", "19:00-20:00"]
|
||||
@@ -49,6 +50,7 @@ export const getAncillarySessionData = ():
|
||||
comment: string | undefined
|
||||
}[]
|
||||
isBreakfast: boolean
|
||||
breakfastData: BreakfastData | null
|
||||
}
|
||||
| undefined => {
|
||||
if (typeof window === "undefined") return undefined
|
||||
@@ -67,6 +69,7 @@ export function setAncillarySessionData({
|
||||
selectedAncillary,
|
||||
packages,
|
||||
isBreakfast,
|
||||
breakfastData,
|
||||
}: {
|
||||
formData?: AncillaryFormData
|
||||
selectedAncillary?: Ancillary["ancillaryContent"][number] | null
|
||||
@@ -76,6 +79,7 @@ export function setAncillarySessionData({
|
||||
comment: string | undefined
|
||||
}[]
|
||||
isBreakfast: boolean
|
||||
breakfastData: BreakfastData | null
|
||||
}) {
|
||||
if (typeof window === "undefined") return
|
||||
try {
|
||||
@@ -88,6 +92,7 @@ export function setAncillarySessionData({
|
||||
selectedAncillary,
|
||||
packages,
|
||||
isBreakfast,
|
||||
breakfastData,
|
||||
})
|
||||
)
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user