[common mobile] Fixed init transparent color into CustomColorPicker component

This commit is contained in:
JuliaSvinareva 2021-01-12 16:43:56 +03:00
parent 0c74ef648a
commit d089a266b0

View file

@ -139,6 +139,9 @@ const CustomColorPicker = props => {
if (props.autoColor) {
currentColor = rgb2hex(props.autoColor);
}
if (currentColor === 'transparent') {
currentColor = 'ffffff';
}
const countDynamicColors = props.countdynamiccolors || 10;
const [stateColor, setColor] = useState(`#${currentColor}`);
useEffect(() => {