diff --git a/ghost/admin/app/components/gh-launch-wizard/finalise.js b/ghost/admin/app/components/gh-launch-wizard/finalise.js index 1c9fc6b8ec..2898713bef 100644 --- a/ghost/admin/app/components/gh-launch-wizard/finalise.js +++ b/ghost/admin/app/components/gh-launch-wizard/finalise.js @@ -23,11 +23,11 @@ export default class GhLaunchWizardFinaliseComponent extends Component { const yearlyPrice = updatedProduct.get('stripePrices').find(d => d.nickname === 'Yearly'); const portalPlans = this.settings.get('portalPlans') || []; let allowedPlans = [...portalPlans]; - if (data.isMonthlyChecked && monthlyPrice) { + if (data.isMonthlyChecked && monthlyPrice && !allowedPlans.includes(monthlyPrice.id)) { allowedPlans.push(monthlyPrice.id); } - if (data.isYearlyChecked && yearlyPrice) { + if (data.isYearlyChecked && yearlyPrice && !allowedPlans.includes(yearlyPrice.id)) { allowedPlans.push(yearlyPrice.id); } this.settings.set('portalPlans', allowedPlans); diff --git a/ghost/admin/app/components/gh-launch-wizard/set-pricing.hbs b/ghost/admin/app/components/gh-launch-wizard/set-pricing.hbs index a8edccac57..85df67f6ec 100644 --- a/ghost/admin/app/components/gh-launch-wizard/set-pricing.hbs +++ b/ghost/admin/app/components/gh-launch-wizard/set-pricing.hbs @@ -127,7 +127,7 @@ {{/if}}