0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

Rounded monthly/yearly Price

refs https://github.com/TryGhost/Team/issues/1319
This commit is contained in:
Fabien "egg" O'Carroll 2022-02-08 16:43:57 +02:00
parent 4cd5ea90eb
commit 55af726402

View file

@ -259,8 +259,8 @@ export default class MembersAccessController extends Controller {
@action @action
updatePortalPreview({forceRefresh} = {forceRefresh: false}) { updatePortalPreview({forceRefresh} = {forceRefresh: false}) {
// TODO: can these be worked out from settings in membersUtils? // TODO: can these be worked out from settings in membersUtils?
const monthlyPrice = this.stripeMonthlyAmount * 100; const monthlyPrice = Math.round(this.stripeMonthlyAmount * 100);
const yearlyPrice = this.stripeYearlyAmount * 100; const yearlyPrice = Math.round(this.stripeYearlyAmount * 100);
let portalPlans = this.settings.get('portalPlans') || []; let portalPlans = this.settings.get('portalPlans') || [];
let isMonthlyChecked = portalPlans.includes('monthly'); let isMonthlyChecked = portalPlans.includes('monthly');