0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-17 23:44:39 -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
updatePortalPreview({forceRefresh} = {forceRefresh: false}) {
// TODO: can these be worked out from settings in membersUtils?
const monthlyPrice = this.stripeMonthlyAmount * 100;
const yearlyPrice = this.stripeYearlyAmount * 100;
const monthlyPrice = Math.round(this.stripeMonthlyAmount * 100);
const yearlyPrice = Math.round(this.stripeYearlyAmount * 100);
let portalPlans = this.settings.get('portalPlans') || [];
let isMonthlyChecked = portalPlans.includes('monthly');