don't error on subscription dashboard page if there is no subscription.taxRate

This commit is contained in:
Henry Oswald 2015-02-12 09:21:45 +00:00
parent bf38fb7459
commit 216c9cefe3
2 changed files with 2 additions and 1 deletions

View file

@ -97,6 +97,7 @@ module.exports = SubscriptionController =
res.render "subscriptions/dashboard", res.render "subscriptions/dashboard",
title: "your_subscription" title: "your_subscription"
recomendedCurrency: subscription?.currency recomendedCurrency: subscription?.currency
taxRate:subscription?.taxRate
plans: plans plans: plans
subscription: subscription subscription: subscription
groups: groups groups: groups

View file

@ -5,7 +5,7 @@ block scripts
window.recomendedCurrency = '#{recomendedCurrency}' window.recomendedCurrency = '#{recomendedCurrency}'
window.recurlyApiKey = "!{settings.apis.recurly.publicKey}" window.recurlyApiKey = "!{settings.apis.recurly.publicKey}"
window.taxRate = #{subscription.taxRate} window.taxRate = #{taxRate}