@ -115,6 +115,7 @@ function getActiveRewards(callback) {
}
}, function(err, data) {
if (data.main) {
data.main.disabled = data.main.disabled === 'true';
data.main.rewards = data.rewards;
activeRewards.push(data.main);
@ -130,4 +131,4 @@ function getActiveRewards(callback) {
});
module.exports = rewards;