mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
don't error on subscription dashboard page if there is no subscription.taxRate
This commit is contained in:
parent
bf38fb7459
commit
216c9cefe3
2 changed files with 2 additions and 1 deletions
|
@ -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
|
||||||
|
|
|
@ -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}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue