From b47db30e9d0c3db917e7b994b53a7bd191e15cac Mon Sep 17 00:00:00 2001 From: Chris Taylor Date: Sat, 21 Dec 2024 17:39:25 +0000 Subject: [PATCH] Allow 0 unsolved --- packages/cli/src/commands/addBlockRules.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, }, }; }