Commit 2571de86e224ec2255f33bca02a078891580f6a2
1 parent
d07368c6
revoke
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
src/components/color-picker/utils.js
@@ -30,7 +30,7 @@ function getColor(data, colorData) { | @@ -30,7 +30,7 @@ function getColor(data, colorData) { | ||
30 | } | 30 | } |
31 | 31 | ||
32 | export function changeColor(data, oldHue) { | 32 | export function changeColor(data, oldHue) { |
33 | - const colorData = data === '' ? '#2d8cf0' : (data || ''); | 33 | + const colorData = data === '' ? '#2d8cf0' : data; |
34 | const color = getColor(data, colorData); | 34 | const color = getColor(data, colorData); |
35 | const hsl = color.toHsl(); | 35 | const hsl = color.toHsl(); |
36 | const hsv = color.toHsv(); | 36 | const hsv = color.toHsv(); |