Refined offer label UI on account home page

closes https://github.com/TryGhost/Team/issues/1195
This commit is contained in:
Rishabh 2022-01-14 19:39:58 +05:30
parent bd291b71bf
commit 2e02824a85

View File

@ -171,7 +171,7 @@ function getOfferLabel({offer, price, subscriptionStartDate}) {
let offerEndDate = new Date(offerStartDate.setMonth(offerStartDate.getMonth() + durationInMonths));
durationLabel = `Ends ${getDateString(offerEndDate)}`;
}
offerLabel = `${getUpdatedOfferPrice({offer, price, useFormatted: true})}/${price.interval}${durationLabel ? `${durationLabel}` : ``}`;
offerLabel = `${getUpdatedOfferPrice({offer, price, useFormatted: true})}/${price.interval}${durationLabel ? ` ${durationLabel}` : ``}`;
}
return offerLabel;
}