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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user