Merged in fix/BOOK-584-red-price-strikethrough (pull request #3298)
fix(BOOK-584): show discounted if specialrate or member * fix(BOOK-584): show discounted if specialrate or member Approved-by: Anton Gunnarsson
This commit is contained in:
@@ -13,6 +13,7 @@ import { ChildBedMapEnum } from "@scandic-hotels/trpc/enums/childBedMapEnum"
|
||||
|
||||
import { getRoomFeatureDescription } from "../../../../../utils/getRoomFeatureDescription"
|
||||
import { SummaryBreakfast } from "../../../../SummaryBreakfast"
|
||||
import { isDiscounted } from "../utils"
|
||||
|
||||
import styles from "./room.module.css"
|
||||
|
||||
@@ -74,13 +75,7 @@ export default function Room({
|
||||
room.roomRate.member
|
||||
)
|
||||
|
||||
const isSpecialRate =
|
||||
"corporateCheque" in room.roomRate ||
|
||||
"redemption" in room.roomRate ||
|
||||
"voucher" in room.roomRate ||
|
||||
room.roomRate.bookingCode ||
|
||||
room.roomRate.rateDefinition.isCampaignRate
|
||||
const showDiscounted = isSpecialRate || showMemberPrice
|
||||
const showDiscounted = isFirstRoomMember || isDiscounted(room)
|
||||
|
||||
const adultsMsg = intl.formatMessage(
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user