Skip to content

Commit

Permalink
oh-colorpicker: Fix command cannot be sent if state is NULL or -
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Hotze <[email protected]>
  • Loading branch information
florian-h05 committed Jul 26, 2023
1 parent f60cc18 commit 110498a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ export default {
},
areHSBEqual (hsb1, hsb2) {
// for the purposes of NOT entering an endless loop, we consider transient non-HSB values to be equal
if (hsb1.length !== hsb2.length) return true
if (hsb1.length !== 3 || hsb2.length !== 3) return true
if (hsb1.length !== hsb2.length) return false
if (hsb1.length !== 3 || hsb2.length !== 3) return false
return (hsb1[0] === hsb2[0] && hsb1[1] === hsb2[1] && hsb1[2] === hsb2[2])
},
roundedHSB (state) {
Expand Down

0 comments on commit 110498a

Please sign in to comment.