Merged in fix/SW-2079-update-confirmation-page-summ (pull request #1774)
fix: SW-2079 Fixed regular room price display confirmation page * fix: SW-2079 Fixed regular room price display confirmation page Approved-by: Simon.Emanuelsson
This commit is contained in:
@@ -19,13 +19,13 @@ export function mapRoomState(
|
||||
(pkg) => pkg.code === BreakfastPackageEnum.FREE_MEMBER_BREAKFAST
|
||||
)
|
||||
|
||||
let formattedTotalCost = formatPrice(
|
||||
let formattedRoomCost = formatPrice(
|
||||
intl,
|
||||
booking.totalPrice,
|
||||
booking.roomPrice,
|
||||
booking.currencyCode
|
||||
)
|
||||
if (booking.roomPoints) {
|
||||
formattedTotalCost = formatPrice(
|
||||
formattedRoomCost = formatPrice(
|
||||
intl,
|
||||
booking.roomPoints,
|
||||
CurrencyEnum.POINTS,
|
||||
@@ -33,7 +33,7 @@ export function mapRoomState(
|
||||
booking.currencyCode
|
||||
)
|
||||
} else if (booking.cheques) {
|
||||
formattedTotalCost = formatPrice(
|
||||
formattedRoomCost = formatPrice(
|
||||
intl,
|
||||
booking.cheques,
|
||||
CurrencyEnum.CC,
|
||||
@@ -41,7 +41,7 @@ export function mapRoomState(
|
||||
booking.currencyCode
|
||||
)
|
||||
} else if (booking.vouchers) {
|
||||
formattedTotalCost = formatPrice(
|
||||
formattedRoomCost = formatPrice(
|
||||
intl,
|
||||
booking.vouchers,
|
||||
CurrencyEnum.Voucher
|
||||
@@ -58,7 +58,7 @@ export function mapRoomState(
|
||||
childBedPreferences: booking.childBedPreferences,
|
||||
confirmationNumber: booking.confirmationNumber,
|
||||
currencyCode: booking.currencyCode,
|
||||
formattedTotalCost,
|
||||
formattedRoomCost,
|
||||
fromDate: booking.checkInDate,
|
||||
name: room.name,
|
||||
packages: booking.packages,
|
||||
|
||||
Reference in New Issue
Block a user