Skip to content

Commit

Permalink
fix: missed an undefined check
Browse files Browse the repository at this point in the history
  • Loading branch information
TN1ck committed Jun 6, 2024
1 parent ec869ee commit c724396
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class SudokuMenuNumbers extends React.Component<PropsFromRedux> {
className={clsx("relative font-bold", {
"bg-gray-400": occurrences == 9,
"bg-red-400": this.props.showOccurrences && occurrences > 9,
"bg-sky-600 text-white": this.props.notesMode && userNotes.includes(n) && activeCell.number === 0,
"bg-sky-600 text-white": this.props.notesMode && userNotes.includes(n) && activeCell?.number === 0,
"bg-sky-300":
this.props.notesMode &&
userNotes.length === 0 &&
Expand Down

0 comments on commit c724396

Please sign in to comment.