fix missing radix on parseInt

This commit is contained in:
Rimian Perkins 2019-11-19 10:21:05 +11:00
parent c79d515cd0
commit 75f5ec4393
2 changed files with 3 additions and 3 deletions

View File

@ -13,7 +13,7 @@ const AdminPlan = Plan.extend({
@computed("trial_period_days")
parseTrialPeriodDays(trial_period_days) {
if (trial_period_days) {
return parseInt(0 + trial_period_days);
return parseInt(0 + trial_period_days, 10);
} else {
return 0;
}

View File

@ -2,7 +2,7 @@
# name: discourse-patrons
# about: Integrates Stripe into Discourse to allow visitors to make payments and Subscribe
# version: 2.2.2
# version: 2.2.3
# url: https://github.com/rimian/discourse-patrons
# authors: Rimian Perkins
@ -40,7 +40,7 @@ end
after_initialize do
::Stripe.api_version = "2019-11-05"
::Stripe.set_app_info('Discourse Patrons', version: '2.2.2', url: 'https://github.com/rimian/discourse-patrons')
::Stripe.set_app_info('Discourse Patrons', version: '2.2.3', url: 'https://github.com/rimian/discourse-patrons')
[
"../lib/discourse_patrons/engine",