Merged in feat(SW-1993)-tracking-mystay-cancellation (pull request #1588)
Feat(SW-1993) tracking mystay * feat(SW-1993) added trackEvent for cancelStay and mypagelink * feat(SW-1993) implement trackCancelStay and trackMyStayPageLink Approved-by: Linus Flood
This commit is contained in:
@@ -5,6 +5,7 @@ import { trpc } from "@/lib/trpc/client"
|
||||
import { useManageStayStore } from "@/components/HotelReservation/MyStay/stores/manageStayStore"
|
||||
import { toast } from "@/components/TempDesignSystem/Toasts"
|
||||
import useLang from "@/hooks/useLang"
|
||||
import { trackCancelStay } from "@/utils/tracking"
|
||||
|
||||
import type {
|
||||
CancelStayFormValues,
|
||||
@@ -90,6 +91,7 @@ export default function useCancelStay({
|
||||
{ currency: booking.currencyCode }
|
||||
)
|
||||
)
|
||||
trackCancelStay(booking.hotelId, booking.confirmationNumber)
|
||||
} else if (results.length > 0 && errors.length > 0) {
|
||||
setBookingStatus()
|
||||
toast.warning(
|
||||
|
||||
Reference in New Issue
Block a user