Merged in fix/SW-1415-my-stay-tracking-hotelId (pull request #1880)
fix(SW-1415): add hotelId in tracking for my stay * fix(SW-1415): add hotelId in tracking for my stay * fix: remove toast if cancel guarantee * fix(SW-1415): rebase master * fix(SW-1415): fix comment shorthand hotelId Approved-by: Christian Andolf
This commit is contained in:
@@ -14,7 +14,8 @@ const retryInterval = 2000
|
||||
|
||||
export function useGuaranteeBooking(
|
||||
confirmationNumber: string,
|
||||
isAncillaryFlow = false
|
||||
isAncillaryFlow = false,
|
||||
hotelId: string
|
||||
) {
|
||||
const intl = useIntl()
|
||||
const router = useRouter()
|
||||
@@ -26,6 +27,7 @@ export function useGuaranteeBooking(
|
||||
trackEvent({
|
||||
event: "glaCardSaveFailed",
|
||||
hotelInfo: {
|
||||
hotelId,
|
||||
lateArrivalGuarantee: "yes",
|
||||
guaranteedProduct: isAncillaryFlow ? "room + ancillary" : "room",
|
||||
},
|
||||
@@ -41,7 +43,7 @@ export function useGuaranteeBooking(
|
||||
})
|
||||
)
|
||||
},
|
||||
[intl, isAncillaryFlow]
|
||||
[intl, isAncillaryFlow, hotelId]
|
||||
)
|
||||
|
||||
const utils = trpc.useUtils()
|
||||
|
||||
Reference in New Issue
Block a user