From 1d785a40a50cf9071f8c291f673fa78a8265baac Mon Sep 17 00:00:00 2001 From: "Chuma Mcphoy (We Ahead)" Date: Fri, 11 Jul 2025 13:00:13 +0000 Subject: [PATCH] Merged in feat/update-earn-burn-description-for-non-transactional-types (pull request #2555) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit feat(LOY-294): Empty Stay description if 0 nights and and non-transactional confirmationNumber * feat(LOY-294): Empty Stay description if 0 nights and and non-transactional confirmationNumber Approved-by: Matilda Landström --- .../JourneyTable/ClientTable/Row/index.tsx | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 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 9f5e9ff1a..a47878c28 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 @@ -4,7 +4,7 @@ import { usePathname } from "next/navigation" import { useIntl } from "react-intl" import { dt } from "@scandic-hotels/common/dt" -import Body from "@scandic-hotels/design-system/Body" +import { Typography } from "@scandic-hotels/design-system/Typography" import { Transactions } from "@scandic-hotels/trpc/enums/transactions" import { webviews } from "@/constants/routes/webviews" @@ -33,9 +33,12 @@ export default function Row({ transaction }: RowProps) { ) let description = - transaction.hotelName && transaction.city - ? `${transaction.hotelName}, ${transaction.city} ${nightsMsg}` - : `${nightsMsg}` + transaction.confirmationNumber === "non-transactional" && + transaction.nights === 0 + ? "" + : transaction.hotelName && transaction.city + ? `${transaction.hotelName}, ${transaction.city} ${nightsMsg}` + : `${nightsMsg}` switch (transaction.type) { case Transactions.rewardType.stay: @@ -108,7 +111,9 @@ export default function Row({ transaction }: RowProps) { /> - {description} + +

{description}

+
{renderConfirmationNumber()}