mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 11:55:03 +03:00
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:
parent
3550c629e4
commit
aa706bc569
@ -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') {
|
||||
|
Loading…
Reference in New Issue
Block a user