add time estimates to challenge blocks on map

This commit is contained in:
Quincy Larson
2015-10-12 22:56:10 -07:00
parent 51012bd121
commit f30239fb6c
25 changed files with 61 additions and 33 deletions

View File

@@ -555,7 +555,8 @@ module.exports = function(app) {
name: blockArray[0].block,
dashedName: dasherize(blockArray[0].block),
challenges: blockArray,
completed: completedCount / blockArray.length * 100
completed: completedCount / blockArray.length * 100,
time: blockArray[0] && blockArray[0].time || "???"
};
})
.filter(({ name }) => name !== 'Hikes')