Skip to content

Commit

Permalink
fix(tune): the tune toggle working now
Browse files Browse the repository at this point in the history
  • Loading branch information
dependentmadani committed Jul 24, 2024
1 parent 3626da1 commit 5ce4814
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ export default class ImageTool implements BlockTool {
*/
private tuneToggled(tuneName: keyof ImageToolData): void {
// inverse tune state
this.setTune(tuneName, this._data[tuneName] !== undefined ? false : true);
this.setTune(tuneName, this._data[tuneName] !== undefined ? true : false);
}

/**
Expand Down

0 comments on commit 5ce4814

Please sign in to comment.