diff --git a/webapp/src/components/tutorialValidators.tsx b/webapp/src/components/tutorialValidators.tsx index fe4c46b734ff..7fe137127a12 100644 --- a/webapp/src/components/tutorialValidators.tsx +++ b/webapp/src/components/tutorialValidators.tsx @@ -64,6 +64,7 @@ export class BlocksExistValidator extends CodeValidatorBase { const { missingBlocks, disabledBlocks, + insufficientBlocks } = pxt.blocks.validateBlocksExist({ usedBlocks: editor.getAllBlocks(false /* ordered */), requiredBlockCounts: stepHighlights, @@ -81,6 +82,9 @@ export class BlocksExistValidator extends CodeValidatorBase { } else if (disabledBlocks.length > 0) { isValid = false; errorDescription = lf("Make sure your blocks are connected to the rest of your code like this."); + } else if (insufficientBlocks.length > 0) { + isValid = false; + errorDescription = lf("Make sure you have enough blocks and that they're connected to the rest of your code. It should look like this."); } const blockImages = stepInfo?.hintContentMd ? (