From e260280ee14c8020e1d08003f7fd3ec7f0aa43ff Mon Sep 17 00:00:00 2001 From: "Bradley M. Kuhn" Date: Tue, 23 Feb 2016 19:45:16 -0800 Subject: [PATCH] Fix math error. --- www/conservancy/static/js/supporter-page.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/www/conservancy/static/js/supporter-page.js b/www/conservancy/static/js/supporter-page.js index 01258c4e..3e201245 100644 --- a/www/conservancy/static/js/supporter-page.js +++ b/www/conservancy/static/js/supporter-page.js @@ -33,8 +33,7 @@ $(document).ready(function() { if (noCommaSiteSoFar >= noCommaSiteMiddleGoal) { // We've got - var moreCount = noCommaSiteSoFar - noCommaSiteMiddleGoal; - var leftOver = noCommaMatchFinalGoal - (moreCount + 750 + noCommaSiteMatchCount); + var leftOver = noCommaMatchFinalGoal - noCommaSiteSoFar; moreCount = moreCount.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ","); $('#siteprogressbar').