[common mobile] Added check for existence of current color into Custom color component
This commit is contained in:
parent
d089a266b0
commit
eb5b8e7973
|
@ -139,7 +139,7 @@ const CustomColorPicker = props => {
|
||||||
if (props.autoColor) {
|
if (props.autoColor) {
|
||||||
currentColor = rgb2hex(props.autoColor);
|
currentColor = rgb2hex(props.autoColor);
|
||||||
}
|
}
|
||||||
if (currentColor === 'transparent') {
|
if (currentColor === 'transparent' || !currentColor) {
|
||||||
currentColor = 'ffffff';
|
currentColor = 'ffffff';
|
||||||
}
|
}
|
||||||
const countDynamicColors = props.countdynamiccolors || 10;
|
const countDynamicColors = props.countdynamiccolors || 10;
|
||||||
|
|
Loading…
Reference in a new issue