added null check on subscription for group plans

This commit is contained in:
Henry Oswald 2014-11-04 10:53:03 +00:00
parent 22f5c5dcb9
commit b9dd2d826e

View file

@ -92,7 +92,7 @@ module.exports = SubscriptionController =
plans = SubscriptionViewModelBuilder.buildViewModel() plans = SubscriptionViewModelBuilder.buildViewModel()
res.render "subscriptions/dashboard", res.render "subscriptions/dashboard",
title: "your_subscription" title: "your_subscription"
recomendedCurrency: subscription.currency recomendedCurrency: subscription?.currency
plans: plans plans: plans
subscription: subscription subscription: subscription
groups: groups groups: groups