From aa706bc569b7fc4872f57a7e44e68fd60c9fa570 Mon Sep 17 00:00:00 2001 From: Rishabh Date: Mon, 12 Dec 2022 11:32:47 +0530 Subject: [PATCH] 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. --- .../pages/AccountHomePage/components/PaidAccountActions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ghost/portal/src/components/pages/AccountHomePage/components/PaidAccountActions.js b/ghost/portal/src/components/pages/AccountHomePage/components/PaidAccountActions.js index 88ba9b8c31..c4e1e9aa8b 100644 --- a/ghost/portal/src/components/pages/AccountHomePage/components/PaidAccountActions.js +++ b/ghost/portal/src/components/pages/AccountHomePage/components/PaidAccountActions.js @@ -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') {