From d089a266b0e1cddde1c2203aaae6d15f1762b65a Mon Sep 17 00:00:00 2001 From: JuliaSvinareva Date: Tue, 12 Jan 2021 16:43:56 +0300 Subject: [PATCH] [common mobile] Fixed init transparent color into CustomColorPicker component --- apps/common/mobile/lib/component/ThemeColorPalette.jsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/common/mobile/lib/component/ThemeColorPalette.jsx b/apps/common/mobile/lib/component/ThemeColorPalette.jsx index e9d73ea7f..31eeb3d09 100644 --- a/apps/common/mobile/lib/component/ThemeColorPalette.jsx +++ b/apps/common/mobile/lib/component/ThemeColorPalette.jsx @@ -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(() => {