supporter: Fix JS syntax to check donation upgrade amount.

This commit is contained in:
Brett Smith 2016-12-02 15:26:12 -05:00
parent 501b4b05fc
commit 9822895971

View file

@ -173,7 +173,7 @@ $(document).ready(function() {
}; };
$window.bind("hashchange", selectSupportTypeFromHash); $window.bind("hashchange", selectSupportTypeFromHash);
var $selectorLink = selectSupportTypeFromHash(); var $selectorLink = selectSupportTypeFromHash();
if (parseInt($("form#annual").upgradeFromAmount) > 0) { if (parseFloat($("form#annual").get(0).dataset.upgradeFromAmount) > 0) {
supportTypeSelector("#annual").click(); supportTypeSelector("#annual").click();
$(".supporter-type-selector").hide(); $(".supporter-type-selector").hide();
} }