From 1850cfd20d6172bcb339ed58995b91ea558625c4 Mon Sep 17 00:00:00 2001 From: Emma Zettervall Date: Thu, 16 Oct 2025 11:14:29 +0000 Subject: [PATCH] Merged in feat/LOY-390-hide-the-value-non-transactional-in-booking-number-column (pull request #2920) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit feat(LOY-390): Hide the value non transactional in booking number column. * feat(LOY-390): Removed non transactional confirmationNumber link, also added description message for non transactional confirmationNumbers with 0 nights * feat(LOY-390): changed description Approved-by: Chuma Mcphoy (We Ahead) Approved-by: Matilda Landström --- .../EarnAndBurn/JourneyTable/ClientTable/Row/index.tsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/apps/scandic-web/components/Blocks/DynamicContent/Points/EarnAndBurn/JourneyTable/ClientTable/Row/index.tsx b/apps/scandic-web/components/Blocks/DynamicContent/Points/EarnAndBurn/JourneyTable/ClientTable/Row/index.tsx index 28b436ca3..70860d51f 100644 --- a/apps/scandic-web/components/Blocks/DynamicContent/Points/EarnAndBurn/JourneyTable/ClientTable/Row/index.tsx +++ b/apps/scandic-web/components/Blocks/DynamicContent/Points/EarnAndBurn/JourneyTable/ClientTable/Row/index.tsx @@ -31,11 +31,10 @@ export default function Row({ transaction }: RowProps) { totalNights: transaction.nights, } ) - let description = transaction.confirmationNumber === "non-transactional" && transaction.nights === 0 - ? "" + ? intl.formatMessage({ defaultMessage: "Points activity" }) : transaction.hotelName && transaction.city ? `${transaction.hotelName}, ${transaction.city} ${nightsMsg}` : `${nightsMsg}` @@ -84,7 +83,11 @@ export default function Row({ transaction }: RowProps) { const arrival = dt(transaction.checkinDate).locale(lang).format("DD MMM YYYY") function renderConfirmationNumber() { - if (transaction.confirmationNumber === "BALFWD") return null + if ( + transaction.confirmationNumber === "BALFWD" || + transaction.confirmationNumber === "non-transactional" + ) + return null if ( !isWebview &&