diff --git a/assets/javascripts/discourse/controllers/s-subscribe-show.js.es6 b/assets/javascripts/discourse/controllers/s-subscribe-show.js.es6 index be8233e..b69ca0f 100644 --- a/assets/javascripts/discourse/controllers/s-subscribe-show.js.es6 +++ b/assets/javascripts/discourse/controllers/s-subscribe-show.js.es6 @@ -38,9 +38,9 @@ export default Ember.Controller.extend({ } else { const customer = Customer.create({ source: result.token.id }); - customer.save().then(customer => { + customer.save().then(c => { const subscription = Subscription.create({ - customer: customer.id, + customer: c.id, plan: plan.get("id") });