Fix last completed logic bug

This PR fixes a regression introduced in an earlier patch
This commit is contained in:
Berkeley Martinez
2015-10-02 10:50:35 -07:00
parent 42b77e92f8
commit 5c3973c365

View File

@ -557,7 +557,7 @@ module.exports = function(app) {
const lastCompletedBlock = _.findLast(blocks, (block) => {
return block.completed === 100;
});
lastCompleted = lastCompleted && lastCompletedBlock.name || null;
lastCompleted = lastCompletedBlock && lastCompletedBlock.name || null;
});
Observable.combineLatest(