diff --git a/packages/cli/src/commands/addBlockRules.ts b/packages/cli/src/commands/addBlockRules.ts index 560eda9a3..0921c3811 100644 --- a/packages/cli/src/commands/addBlockRules.ts +++ b/packages/cli/src/commands/addBlockRules.ts @@ -79,13 +79,13 @@ export default ( await env.isReady(); const tasks = new Tasks(env); let captchaConfig: CaptchaConfig | undefined; - if (argv.solved && argv.unsolved) { + if (argv.solved) { captchaConfig = { solved: { count: argv.solved as unknown as number, }, unsolved: { - count: argv.unsolved as unknown as number, + count: (argv.unsolved as unknown as number) || 0, }, }; }