fix check for existance when getting last challenge
This commit is contained in:
@ -519,7 +519,7 @@ module.exports = function(app) {
|
||||
const lastCompletedBlock = _.findLast(blocks, (block) => {
|
||||
return block.completed === 100;
|
||||
});
|
||||
lastCompleted = lastCompletedBlock.name;
|
||||
lastCompleted = lastCompleted && lastCompletedBlock.name || null;
|
||||
});
|
||||
|
||||
Observable.combineLatest(
|
||||
|
Reference in New Issue
Block a user