mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-23 13:51:11 +00:00
deal with nan tax rate if user is not in taxable location for subscription dashboard/change plan
This commit is contained in:
parent
d112ad22a8
commit
f7f681d2a3
1 changed files with 4 additions and 1 deletions
|
@ -45,7 +45,10 @@ define [
|
|||
pricing.plan(planCode, { quantity: 1 }).currency(MultiCurrencyPricing.currencyCode).done (price)->
|
||||
totalPriceExTax = parseFloat(price.next.total)
|
||||
$scope.$evalAsync () ->
|
||||
$scope.prices[planCode] = $scope.currencySymbol + (totalPriceExTax + (totalPriceExTax * taxRate))
|
||||
taxAmmount = totalPriceExTax * taxRate
|
||||
if isNaN(taxAmmount)
|
||||
taxAmmount = 0
|
||||
$scope.prices[planCode] = $scope.currencySymbol + (totalPriceExTax + taxAmmount)
|
||||
|
||||
price = ""
|
||||
|
||||
|
|
Loading…
Reference in a new issue