From 4e0460c69bbd2e422fb9870a3f73513ffdef53b5 Mon Sep 17 00:00:00 2001 From: Anton Lobovkin Date: Wed, 8 Apr 2020 22:58:31 +0200 Subject: [PATCH] Using existing function getAmount --- static/js/billing.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/static/js/billing.js b/static/js/billing.js index a91b9ccb..6ea78cde 100644 --- a/static/js/billing.js +++ b/static/js/billing.js @@ -163,8 +163,7 @@ $(function () { } else { var caption = "Change Billing Plan"; if (planId) { - var amount = planId.substr(1); - caption += " And Pay $" + amount + " Now"; + caption += " And Pay $" + getAmount(planId) + " Now"; } $("#change-plan-btn") @@ -175,4 +174,4 @@ $(function () { } updateChangePlanForm(); -}); \ No newline at end of file +});