Skip to content

Commit

Permalink
Fix copy button enablement.
Browse files Browse the repository at this point in the history
  • Loading branch information
sigh committed Jan 8, 2024
1 parent c6367a3 commit d8fa37e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/display.js
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ class SolutionDisplay extends CellValueDisplay {
this._renderGridValues(solution);

this._copyElem.disabled = (
!solution.every(v => v && isFinite(v)));
!this._currentSolution.every(v => v && isFinite(v)));

svg.classList.remove('hidden-solution');
}
Expand Down

0 comments on commit d8fa37e

Please sign in to comment.