Skip to content

Commit

Permalink
Allow 0 unsolved (#1586)
Browse files Browse the repository at this point in the history
  • Loading branch information
forgetso authored Dec 21, 2024
2 parents 75f9d6b + b47db30 commit f00add5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/cli/src/commands/addBlockRules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
};
}
Expand Down

0 comments on commit f00add5

Please sign in to comment.