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:
parent
4cd5ea90eb
commit
55af726402
1 changed files with 2 additions and 2 deletions
|
@ -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');
|
||||||
|
|
Loading…
Add table
Reference in a new issue