[common mobile] Added check for existence of current color into Custom color component

This commit is contained in:
JuliaSvinareva 2021-01-12 20:19:16 +03:00
parent d089a266b0
commit eb5b8e7973

View file

@ -139,7 +139,7 @@ const CustomColorPicker = props => {
if (props.autoColor) {
currentColor = rgb2hex(props.autoColor);
}
if (currentColor === 'transparent') {
if (currentColor === 'transparent' || !currentColor) {
currentColor = 'ffffff';
}
const countDynamicColors = props.countdynamiccolors || 10;