From 216c9cefe3bd74d3d59c7ce8fa8221c751c49496 Mon Sep 17 00:00:00 2001 From: Henry Oswald Date: Thu, 12 Feb 2015 09:21:45 +0000 Subject: [PATCH] don't error on subscription dashboard page if there is no subscription.taxRate --- .../coffee/Features/Subscription/SubscriptionController.coffee | 1 + services/web/app/views/subscriptions/dashboard.jade | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/services/web/app/coffee/Features/Subscription/SubscriptionController.coffee b/services/web/app/coffee/Features/Subscription/SubscriptionController.coffee index bce650a642..0669b72524 100644 --- a/services/web/app/coffee/Features/Subscription/SubscriptionController.coffee +++ b/services/web/app/coffee/Features/Subscription/SubscriptionController.coffee @@ -97,6 +97,7 @@ module.exports = SubscriptionController = res.render "subscriptions/dashboard", title: "your_subscription" recomendedCurrency: subscription?.currency + taxRate:subscription?.taxRate plans: plans subscription: subscription groups: groups diff --git a/services/web/app/views/subscriptions/dashboard.jade b/services/web/app/views/subscriptions/dashboard.jade index 5d26be1429..5b85b1324b 100644 --- a/services/web/app/views/subscriptions/dashboard.jade +++ b/services/web/app/views/subscriptions/dashboard.jade @@ -5,7 +5,7 @@ block scripts window.recomendedCurrency = '#{recomendedCurrency}' window.recurlyApiKey = "!{settings.apis.recurly.publicKey}" - window.taxRate = #{subscription.taxRate} + window.taxRate = #{taxRate}