From 65e5d90feeee32cc1e0579a731f84915066c211f Mon Sep 17 00:00:00 2001 From: Emma Zettervall Date: Mon, 2 Feb 2026 12:44:08 +0000 Subject: [PATCH] Merged in fix/point-transaction-link (pull request #3526) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix/point transaction link * fix: only make stay transactions links * fix: only make transaction of type stay and reward nights with a bookingUrl as links Approved-by: Matilda Landström --- .../PointTransactionList/PointTransactionRow/index.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/apps/scandic-web/components/Blocks/DynamicContent/Points/PointTransactions/PointTransactionList/PointTransactionRow/index.tsx b/apps/scandic-web/components/Blocks/DynamicContent/Points/PointTransactions/PointTransactionList/PointTransactionRow/index.tsx index 30ecc509b..19c37fa13 100644 --- a/apps/scandic-web/components/Blocks/DynamicContent/Points/PointTransactions/PointTransactionList/PointTransactionRow/index.tsx +++ b/apps/scandic-web/components/Blocks/DynamicContent/Points/PointTransactions/PointTransactionList/PointTransactionRow/index.tsx @@ -41,7 +41,12 @@ export function PointTransactionRow({ ? formattedPoints : `${awardPoints > 0 ? "+" : "-"} ${formattedPoints}` - const canLinkBookingUrl = !balfwd && !nonTransactional + const canLinkBookingUrl = + !balfwd && + !nonTransactional && + !!transaction.attributes.bookingUrl && + (transaction.type === Transactions.rewardType.stay || + transaction.type === Transactions.rewardType.rewardNight) const description = getDescription(transaction, intl)