0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-25 02:31:59 -05:00

Updated tier price to use boolean for active

This commit is contained in:
Rishabh 2022-05-12 20:21:10 +05:30
parent dd3d84a8a5
commit 704310ba20
3 changed files with 6 additions and 6 deletions

View file

@ -169,7 +169,7 @@ export default class GhLaunchWizardConnectStripeComponent extends Component {
this.tier.set('monthlyPrice', {
nickname: 'Monthly',
amount: 500,
active: 1,
active: true,
description: 'Full access',
currency: 'usd',
interval: 'month',
@ -178,7 +178,7 @@ export default class GhLaunchWizardConnectStripeComponent extends Component {
this.tier.set('yearlyPrice', {
nickname: 'Yearly',
amount: 5000,
active: 1,
active: true,
currency: 'usd',
description: yearlyDiscount > 0 ? `${yearlyDiscount}% discount` : 'Full access',
interval: 'year',

View file

@ -25,7 +25,7 @@ export default class GhLaunchWizardFinaliseComponent extends Component {
const monthlyPrice = {
nickname: 'Monthly',
amount: monthlyAmount,
active: 1,
active: true,
currency: currency,
interval: 'month',
type: 'recurring'
@ -33,7 +33,7 @@ export default class GhLaunchWizardFinaliseComponent extends Component {
const yearlyPrice = {
nickname: 'Yearly',
amount: yearlyAmount,
active: 1,
active: true,
currency: currency,
interval: 'year',
type: 'recurring'

View file

@ -258,7 +258,7 @@ export default Component.extend({
this.tier.set('monthlyPrice', {
nickname: 'Monthly',
amount: 500,
active: 1,
active: true,
description: 'Full access',
currency: 'usd',
interval: 'month',
@ -267,7 +267,7 @@ export default Component.extend({
this.tier.set('yearlyPrice', {
nickname: 'Yearly',
amount: 5000,
active: 1,
active: true,
currency: 'usd',
description: yearlyDiscount > 0 ? `${yearlyDiscount}% discount` : 'Full access',
interval: 'year',