Node.js based forum software built for the modern web
filter out illegitimate rewards
psychobunnyca3e0b59b0f4
diff --git a/src/rewards/index.js b/src/rewards/index.jsindex fb4fc9d0e8..763a69afa8 100644--- a/src/rewards/index.js+++ b/src/rewards/index.js@@ -76,6 +76,10 @@ function filterCompletedRewards(uid, rewards, callback) {});rewards = rewards.filter(function(reward) {+ if (!reward) {+ return false;+ }+var claimable = parseInt(reward.claimable, 10);if (claimable === 0) {