Removed one-time offer from being shown in portal

refs https://github.com/TryGhost/Team/issues/2376

When a discount offer for a first-payment is setup, when a member views their plan details in Portal, it still shows the discounted price, it shows the discounted offer instead of the actual price they will be charged next time, which is incorrect.
For one time payments, we'll not reflect the discount in portal as the member will not receive that discount going forward.
This commit is contained in:
Rishabh 2022-12-12 11:32:47 +05:30
parent 3550c629e4
commit aa706bc569

View File

@ -187,7 +187,7 @@ function FreeTrialLabel({subscription, priceLabel}) {
function getOfferLabel({offer, price, subscriptionStartDate}) {
let offerLabel = '';
if (offer) {
if (offer && offer?.duration !== 'once') {
const discountDuration = offer.duration;
let durationLabel = '';
if (discountDuration === 'forever') {