Fix last completed logic bug

This PR fixes a regression introduced in an earlier patch
pull/3567/head
Berkeley Martinez 2015-10-02 10:50:35 -07:00
parent 42b77e92f8
commit 5c3973c365
1 changed files with 1 additions and 1 deletions

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(