diff --git a/apps/scandic-web/components/HotelReservation/MyStay/Ancillaries/AddAncillaryFlow/AddAncillaryFlowModal/Steps/Desktop/index.tsx b/apps/scandic-web/components/HotelReservation/MyStay/Ancillaries/AddAncillaryFlow/AddAncillaryFlowModal/Steps/Desktop/index.tsx
index 242151685..f595f31ca 100644
--- a/apps/scandic-web/components/HotelReservation/MyStay/Ancillaries/AddAncillaryFlow/AddAncillaryFlowModal/Steps/Desktop/index.tsx
+++ b/apps/scandic-web/components/HotelReservation/MyStay/Ancillaries/AddAncillaryFlow/AddAncillaryFlowModal/Steps/Desktop/index.tsx
@@ -22,5 +22,5 @@ export default function Desktop({ user, savedCreditCards }: StepsProps) {
return
}
- return
+ return
}
diff --git a/apps/scandic-web/components/HotelReservation/MyStay/Ancillaries/AddAncillaryFlow/AddAncillaryFlowModal/Steps/Mobile/index.tsx b/apps/scandic-web/components/HotelReservation/MyStay/Ancillaries/AddAncillaryFlow/AddAncillaryFlowModal/Steps/Mobile/index.tsx
index 32c7a54c5..fc3f80658 100644
--- a/apps/scandic-web/components/HotelReservation/MyStay/Ancillaries/AddAncillaryFlow/AddAncillaryFlowModal/Steps/Mobile/index.tsx
+++ b/apps/scandic-web/components/HotelReservation/MyStay/Ancillaries/AddAncillaryFlow/AddAncillaryFlowModal/Steps/Mobile/index.tsx
@@ -23,5 +23,5 @@ export default function Mobile({ user, savedCreditCards }: StepsProps) {
>
)
}
- return
+ return
}
diff --git a/apps/scandic-web/components/HotelReservation/MyStay/Ancillaries/AddAncillaryFlow/AddAncillaryFlowModal/index.tsx b/apps/scandic-web/components/HotelReservation/MyStay/Ancillaries/AddAncillaryFlow/AddAncillaryFlowModal/index.tsx
index 477fc668d..af38418fd 100644
--- a/apps/scandic-web/components/HotelReservation/MyStay/Ancillaries/AddAncillaryFlow/AddAncillaryFlowModal/index.tsx
+++ b/apps/scandic-web/components/HotelReservation/MyStay/Ancillaries/AddAncillaryFlow/AddAncillaryFlowModal/index.tsx
@@ -264,8 +264,10 @@ export default function AddAncillaryFlowModal({
toast.error(intl.formatMessage({ id: "Something went wrong!" }))
return
}
+ const shouldSkipGuarantee =
+ booking.guaranteeInfo || (data.quantityWithCard ?? 0) <= 0
- if (booking.guaranteeInfo) {
+ if (shouldSkipGuarantee) {
handleAncillarySubmission(data, packagesToAdd)
} else {
handleGuaranteePayment(data, packagesToAdd)
diff --git a/apps/scandic-web/i18n/dictionaries/da.json b/apps/scandic-web/i18n/dictionaries/da.json
index 3a769e277..355732eed 100644
--- a/apps/scandic-web/i18n/dictionaries/da.json
+++ b/apps/scandic-web/i18n/dictionaries/da.json
@@ -631,6 +631,7 @@
"Points may take up to 10 days to be displayed.": "Det kan tage op til 10 dage at få vist point.",
"Points needed to level up": "Point nødvendige for at stige i niveau",
"Points needed to stay on level": "Point nødvendige for at holde sig på niveau",
+ "Points to be deducted now": "Point, der skal trækkes nu",
"Points used": "Points used",
"Practical information": "Praktisk information",
"Preliminary receipt": "Foreløbig kvittering",
@@ -978,6 +979,8 @@
"{amount, plural, one {Gift} other {Gifts}} added to your benefits": "{amount, plural, one {Gave} other {Gaver}} tilføjet til dine fordele",
"{amount} has been paid": "{amount} has been paid",
"{amount} out of {total}": "{amount} ud af {total}",
+ "{amount} points": "{amount} point",
+ "{amount} points available": "{amount} point tilgængelige",
"{amount} {amount, plural, one {hotel} other {hotels}}": "{amount} {amount, plural, one {hotel} other {hoteller}}",
"{amount}/night per adult": "{amount}/nat per voksen",
"{ancillary} added to your booking!": "{ancillary} tilføjet til din booking!",
diff --git a/apps/scandic-web/i18n/dictionaries/de.json b/apps/scandic-web/i18n/dictionaries/de.json
index 82330f029..7bd43b15b 100644
--- a/apps/scandic-web/i18n/dictionaries/de.json
+++ b/apps/scandic-web/i18n/dictionaries/de.json
@@ -630,6 +630,7 @@
"Points may take up to 10 days to be displayed.": "Es kann bis zu 10 Tage dauern, bis Punkte angezeigt werden.",
"Points needed to level up": "Punkte, die zum Levelaufstieg benötigt werden",
"Points needed to stay on level": "Erforderliche Punkte, um auf diesem Level zu bleiben",
+ "Points to be deducted now": "Punkte, die jetzt abgezogen werden",
"Points used": "Points used",
"Practical information": "Praktische Informationen",
"Preliminary receipt": "Vorläufige Quittung",
@@ -976,6 +977,8 @@
"{amount, plural, one {Gift} other {Gifts}} added to your benefits": "{amount, plural, one {Geschenk zu Ihren Vorteilen hinzugefügt} other {Geschenke, die zu Ihren Vorteilen hinzugefügt werden}}",
"{amount} has been paid": "{amount} has been paid",
"{amount} out of {total}": "{amount} von {total}",
+ "{amount} points": "{amount} Punkte",
+ "{amount} points available": "{amount} Punkte verfügbar",
"{amount} {amount, plural, one {hotel} other {hotels}}": "{amount} {amount, plural, one {hotel} other {hotels}}",
"{amount}/night per adult": "{amount}/Nacht pro Erwachsenem",
"{ancillary} added to your booking!": "{ancillary} zu Ihrer Buchung hinzugefügt!",
diff --git a/apps/scandic-web/i18n/dictionaries/en.json b/apps/scandic-web/i18n/dictionaries/en.json
index 18f8ed161..1c02dd1ed 100644
--- a/apps/scandic-web/i18n/dictionaries/en.json
+++ b/apps/scandic-web/i18n/dictionaries/en.json
@@ -631,6 +631,7 @@
"Points may take up to 10 days to be displayed.": "Points may take up to 10 days to be displayed.",
"Points needed to level up": "Points needed to level up",
"Points needed to stay on level": "Points needed to stay on level",
+ "Points to be deducted now": "Points to be deducted now",
"Points used": "Points used",
"Practical information": "Practical information",
"Preliminary receipt": "Preliminary receipt",
@@ -973,6 +974,8 @@
"{amount, plural, one {Gift} other {Gifts}} added to your benefits": "{amount, plural, one {Gift} other {Gifts}} added to your benefits",
"{amount} has been paid": "{amount} has been paid",
"{amount} out of {total}": "{amount} out of {total}",
+ "{amount} points": "{amount} points",
+ "{amount} points available": "{amount} points available",
"{amount} {amount, plural, one {hotel} other {hotels}}": "{amount} {amount, plural, one {hotel} other {hotels}}",
"{amount}/night per adult": "{amount}/night per adult",
"{ancillary} added to your booking!": "{ancillary} added to your booking!",
diff --git a/apps/scandic-web/i18n/dictionaries/fi.json b/apps/scandic-web/i18n/dictionaries/fi.json
index 1ce60c043..c877b316f 100644
--- a/apps/scandic-web/i18n/dictionaries/fi.json
+++ b/apps/scandic-web/i18n/dictionaries/fi.json
@@ -629,6 +629,7 @@
"Points may take up to 10 days to be displayed.": "Pisteiden näyttäminen voi kestää jopa 10 päivää.",
"Points needed to level up": "Tarvitset vielä",
"Points needed to stay on level": "Tällä tasolla pysymiseen tarvittavat pisteet",
+ "Points to be deducted now": "Nyt vähennettävät pisteet",
"Points used": "Points used",
"Practical information": "Käytännön tietoa",
"Preliminary receipt": "Alustava kuitti",
@@ -976,6 +977,8 @@
"{amount, plural, one {Gift} other {Gifts}} added to your benefits": "{amount, plural, one {Lahja} other {Lahjat}} lisätty etuusi",
"{amount} has been paid": "{amount} has been paid",
"{amount} out of {total}": "{amount}/{total}",
+ "{amount} points": "{amount} pistettä",
+ "{amount} points available": "{amount} pistettä saatavilla",
"{amount} {amount, plural, one {hotel} other {hotels}}": "{amount} {amount, plural, one {hotelli} other {hotellit}}",
"{amount}/night per adult": "{amount}/yötä aikuista kohti",
"{ancillary} added to your booking!": "{ancillary} lisätty varaukseesi!",
diff --git a/apps/scandic-web/i18n/dictionaries/no.json b/apps/scandic-web/i18n/dictionaries/no.json
index 00278f725..24e70df73 100644
--- a/apps/scandic-web/i18n/dictionaries/no.json
+++ b/apps/scandic-web/i18n/dictionaries/no.json
@@ -628,6 +628,7 @@
"Points may take up to 10 days to be displayed.": "Det kan ta opptil 10 dager før poeng vises.",
"Points needed to level up": "Poeng som trengs for å komme opp i nivå",
"Points needed to stay on level": "Poeng som trengs for å holde seg på nivå",
+ "Points to be deducted now": "Poeng som trekkes nå",
"Points used": "Points used",
"Practical information": "Praktisk informasjon",
"Preliminary receipt": "Foreløpig kvittering",
@@ -972,6 +973,8 @@
"{amount, plural, one {Gift} other {Gifts}} added to your benefits": "{amount, plural, one {Gave} other {Gaver}} lagt til fordelene dine",
"{amount} has been paid": "{amount} has been paid",
"{amount} out of {total}": "{amount} av {total}",
+ "{amount} points": "{amount} poeng",
+ "{amount} points available": "{amount} poeng tilgjengelig",
"{amount} {amount, plural, one {hotel} other {hotels}}": "{amount} {amount, plural, one {hotell} other {hoteller}}",
"{amount}/night per adult": "{amount}/natt per voksen",
"{ancillary} added to your booking!": "{ancillary} lagt til bestillingen din!",
diff --git a/apps/scandic-web/i18n/dictionaries/sv.json b/apps/scandic-web/i18n/dictionaries/sv.json
index 1d36e9ef1..f5f29aa1b 100644
--- a/apps/scandic-web/i18n/dictionaries/sv.json
+++ b/apps/scandic-web/i18n/dictionaries/sv.json
@@ -628,6 +628,7 @@
"Points may take up to 10 days to be displayed.": "Det kan ta upp till 10 dagar innan poäng visas.",
"Points needed to level up": "Poäng som behövs för att gå upp i nivå",
"Points needed to stay on level": "Poäng som behövs för att hålla sig på nivå",
+ "Points to be deducted now": "Poäng som dras av nu",
"Points used": "Points used",
"Practical information": "Praktisk information",
"Preliminary receipt": "Preliminärt kvitto",
@@ -976,6 +977,8 @@
"{amount, plural, one {Gift} other {Gifts}} added to your benefits": "{amount, plural, one {Gåva} other {Gåvor}} läggs till dina förmåner",
"{amount} has been paid": "{amount} has been paid",
"{amount} out of {total}": "{amount} av {total}",
+ "{amount} points": "{amount} poäng",
+ "{amount} points available": "{amount} poäng tillgängliga",
"{amount} {amount, plural, one {hotel} other {hotels}}": "{amount} {amount, plural, one {hotell} other {hotell}}",
"{amount}/night per adult": "{amount}/natt per vuxen",
"{ancillary} added to your booking!": "{ancillary} har lagts till i din bokning!",
diff --git a/apps/scandic-web/types/components/myPages/myStay/ancillaries.ts b/apps/scandic-web/types/components/myPages/myStay/ancillaries.ts
index 15d72b6fb..d47879ad0 100644
--- a/apps/scandic-web/types/components/myPages/myStay/ancillaries.ts
+++ b/apps/scandic-web/types/components/myPages/myStay/ancillaries.ts
@@ -60,6 +60,7 @@ export interface SelectQuantityStepProps {
export interface ConfirmationStepProps {
savedCreditCards: CreditCard[] | null
+ user: User | null
}
export interface StepsProps {
diff --git a/apps/scandic-web/utils/tracking/myStay.ts b/apps/scandic-web/utils/tracking/myStay.ts
index 7427e1f11..873e2748c 100644
--- a/apps/scandic-web/utils/tracking/myStay.ts
+++ b/apps/scandic-web/utils/tracking/myStay.ts
@@ -185,7 +185,6 @@ export function trackAddAncillary(
productName: ancillary?.title,
productUnits: quantityWithCard,
productPrice: ancillary?.price,
- productPoints: ancillary?.points,
productCategory: ancillary?.categoryName,
})
}
@@ -196,7 +195,6 @@ export function trackAddAncillary(
productId: ancillary?.loyaltyCode,
productName: ancillary?.title,
productUnits: quantityWithPoints,
- productPrice: ancillary?.price,
productPoints: ancillary?.points,
productCategory: ancillary?.categoryName,
})