mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-03-28 23:01:57 -04:00
Fix(challenges): load next block on block completion
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user