js: Set default noCommaSiteMiddleGoal.

This commit is contained in:
Brett Smith 2016-11-29 13:29:12 -05:00
parent 05290a6352
commit 52bcf1152a

View file

@ -23,6 +23,9 @@ $(document).ready(function() {
var noCommaSiteFinalGoal = parseInt(siteFinalGoal.replace(/,/g, ""));
var siteMiddleGoal = $('span#site-fundraiser-middle-goal').text();
var noCommaSiteMiddleGoal = parseInt(siteMiddleGoal.replace(/,/g, ""));
if (!noCommaSiteMiddleGoal) {
noCommaSiteMiddleGoal = 0;
}
var siteSoFar = $('span#site-fundraiser-so-far').text();
var noCommaSiteSoFar = parseInt(siteSoFar.replace(/,/g, ""));
var siteMatchCount = $('span#site-fundraiser-match-count').text();