Merged in fix/SW-3303-campaign-rate-naming (pull request #2702)
fix(SW-3303): campaign rate should have ratedefinition title * fix(SW-3303): campaign rate should have ratedefinition title Approved-by: Matilda Landström
This commit is contained in:
@@ -217,6 +217,9 @@ function Inner({
|
||||
const campaignMemberLabel =
|
||||
product.rateDefinitionMember?.title || memberPriceMsg
|
||||
|
||||
const campaignStandardLabel =
|
||||
product.rateDefinition?.title || standardPriceMsg
|
||||
|
||||
return (
|
||||
<CampaignRateCard
|
||||
key={product.rate}
|
||||
@@ -238,7 +241,7 @@ function Inner({
|
||||
memberRate={
|
||||
pricePerNightMember && !isMainRoomAndLoggedIn
|
||||
? {
|
||||
label: memberPriceMsg,
|
||||
label: campaignMemberLabel,
|
||||
price: pricePerNightMember.totalPrice,
|
||||
unit: `${product.member!.localPrice.currency}/${night}`,
|
||||
}
|
||||
@@ -255,7 +258,9 @@ function Inner({
|
||||
name={`rateCode-${roomNr}-${product.public.rateCode}`}
|
||||
paymentTerm={rateTitles[product.rate].paymentTerm}
|
||||
rate={{
|
||||
label: isMainRoomAndLoggedIn ? campaignMemberLabel : standardPriceMsg,
|
||||
label: isMainRoomAndLoggedIn
|
||||
? campaignMemberLabel
|
||||
: campaignStandardLabel,
|
||||
price:
|
||||
isMainRoomAndLoggedIn && pricePerNightMember
|
||||
? pricePerNightMember.totalPrice
|
||||
|
||||
Reference in New Issue
Block a user