Skip to content

Commit

Permalink
Merge pull request lichess-org#16720 from KillerKady/hint-not-showing…
Browse files Browse the repository at this point in the history
…-puzzle

Show puzzle hint when square is 0
  • Loading branch information
niklasf authored Jan 5, 2025
2 parents 4c28706 + e0928f0 commit 9c8c964
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/puzzle/src/autoShape.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export default function (opts: Opts): DrawShape[] {
} else shapes = shapes.concat(makeAutoShapesFromUci(opposite(color), n.threat.pvs[0].moves[0], 'red'));
}
const feedback = feedbackAnnotation(n);
const hint = opts.hint && { orig: makeSquare(opts.hint), brush: 'green' };
const hint = opts.hint !== undefined ? { orig: makeSquare(opts.hint), brush: 'green' } : undefined;
return [
...shapes,
...annotationShapes(n),
Expand Down

0 comments on commit 9c8c964

Please sign in to comment.