diff --git a/services/web/app/coffee/Features/Subscription/SubscriptionViewModelBuilder.coffee b/services/web/app/coffee/Features/Subscription/SubscriptionViewModelBuilder.coffee index 2c47462534..ef2accb730 100644 --- a/services/web/app/coffee/Features/Subscription/SubscriptionViewModelBuilder.coffee +++ b/services/web/app/coffee/Features/Subscription/SubscriptionViewModelBuilder.coffee @@ -19,11 +19,11 @@ module.exports = RecurlyWrapper.getSubscription subscription.recurlySubscription_id, (err, recurlySubscription)-> callback null, { name: plan.name - nextPaymentDueAt: SubscriptionFormatters.formatDate(recurlySubscription.current_period_ends_at) - state: recurlySubscription.state - price: SubscriptionFormatters.formatPrice recurlySubscription.unit_amount_in_cents, recurlySubscription.currency + nextPaymentDueAt: SubscriptionFormatters.formatDate(recurlySubscription?.current_period_ends_at) + state: recurlySubscription?.state + price: SubscriptionFormatters.formatPrice recurlySubscription?.unit_amount_in_cents, recurlySubscription?.currency planCode: subscription.planCode - currency:recurlySubscription.currency + currency:recurlySubscription?.currency groupPlan: subscription.groupPlan }, memberSubscriptions else