Using existing function getAmount

This commit is contained in:
Anton Lobovkin 2020-04-08 22:58:31 +02:00 committed by GitHub
parent a982ad7123
commit 4e0460c69b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -163,8 +163,7 @@ $(function () {
} else { } else {
var caption = "Change Billing Plan"; var caption = "Change Billing Plan";
if (planId) { if (planId) {
var amount = planId.substr(1); caption += " And Pay $" + getAmount(planId) + " Now";
caption += " And Pay $" + amount + " Now";
} }
$("#change-plan-btn") $("#change-plan-btn")
@ -175,4 +174,4 @@ $(function () {
} }
updateChangePlanForm(); updateChangePlanForm();
}); });