Merged in feature/warmup (pull request #1887)
* unified warmup function Approved-by: Linus Flood
This commit is contained in:
@@ -9,14 +9,13 @@ import {
|
||||
clearGlaSessionStorage,
|
||||
readGlaFromSessionStorage,
|
||||
} from "@/components/HotelReservation/EnterDetails/Payment/PaymentCallback/helpers"
|
||||
import LoadingSpinner from "@/components/LoadingSpinner"
|
||||
import { trackEvent } from "@/utils/tracking/base"
|
||||
import { buildAncillaries } from "@/utils/tracking/myStay"
|
||||
|
||||
import {
|
||||
buildAncillaryPackages,
|
||||
getAncillarySessionData,
|
||||
} from "@/components/HotelReservation/MyStay/utils/ancillaries"
|
||||
import LoadingSpinner from "@/components/LoadingSpinner"
|
||||
import { trackEvent } from "@/utils/tracking/base"
|
||||
import { buildAncillaries } from "@/utils/tracking/myStay"
|
||||
|
||||
interface TrackGuaranteeProps {
|
||||
status: string
|
||||
@@ -93,21 +92,21 @@ export default function TrackGuarantee({
|
||||
case PaymentCallbackStatusEnum.Cancel:
|
||||
isAncillaryFlow
|
||||
? trackAncillaryPaymentEvent(
|
||||
"GuaranteeCancelAncillary",
|
||||
"glacardsavecancelled"
|
||||
)
|
||||
"GuaranteeCancelAncillary",
|
||||
"glacardsavecancelled"
|
||||
)
|
||||
: trackGuaranteePaymentEvent(
|
||||
"glaCardSaveCancelled",
|
||||
"glacardsavecancelled"
|
||||
)
|
||||
"glaCardSaveCancelled",
|
||||
"glacardsavecancelled"
|
||||
)
|
||||
break
|
||||
|
||||
case PaymentCallbackStatusEnum.Error:
|
||||
isAncillaryFlow
|
||||
? trackAncillaryPaymentEvent(
|
||||
"GuaranteeFailAncillary",
|
||||
"glacardsavefailed"
|
||||
)
|
||||
"GuaranteeFailAncillary",
|
||||
"glacardsavefailed"
|
||||
)
|
||||
: trackGuaranteePaymentEvent("glaCardSaveFailed", "glacardsavefailed")
|
||||
break
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user