Merged in feat/LOY-390-hide-the-value-non-transactional-in-booking-number-column (pull request #2920)
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
This commit is contained in:
@@ -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 &&
|
||||
|
||||
Reference in New Issue
Block a user