Merged in fix/point-transaction-link (pull request #3526)

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
This commit is contained in:
Emma Zettervall
2026-02-02 12:44:08 +00:00
parent 5f55687239
commit 65e5d90fee

View File

@@ -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)