Fix(challenges): load next block on block completion

This commit is contained in:
Berkeley Martinez
2016-07-28 23:40:01 -07:00
parent 77be343e04
commit f7d420ec5b
+1 -1
View File
@@ -121,7 +121,7 @@ export function getFirstChallengeOfNextBlock(current, entites) {
}
const superBlock = SuperBlockMap[block.superBlock];
const index = superBlock.blocks.indexOf(block.dashedName);
const newBlock = superBlock.blocks[ index + 1 ];
const newBlock = blockMap[superBlock.blocks[ index + 1 ]];
if (!newBlock) {
return null;
}