Fix(challenges): load next block on block completion

This commit is contained in:
Berkeley Martinez
2016-06-21 09:52:16 -07:00
parent 77be343e04
commit f7d420ec5b

View File

@ -121,7 +121,7 @@ export function getFirstChallengeOfNextBlock(current, entites) {
} }
const superBlock = SuperBlockMap[block.superBlock]; const superBlock = SuperBlockMap[block.superBlock];
const index = superBlock.blocks.indexOf(block.dashedName); const index = superBlock.blocks.indexOf(block.dashedName);
const newBlock = superBlock.blocks[ index + 1 ]; const newBlock = blockMap[superBlock.blocks[ index + 1 ]];
if (!newBlock) { if (!newBlock) {
return null; return null;
} }