From eb5b8e7973f5d58e5dbee1ee01d17e6924834600 Mon Sep 17 00:00:00 2001 From: JuliaSvinareva Date: Tue, 12 Jan 2021 20:19:16 +0300 Subject: [PATCH] [common mobile] Added check for existence of current color into Custom color component --- apps/common/mobile/lib/component/ThemeColorPalette.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/common/mobile/lib/component/ThemeColorPalette.jsx b/apps/common/mobile/lib/component/ThemeColorPalette.jsx index 31eeb3d09..e16403d72 100644 --- a/apps/common/mobile/lib/component/ThemeColorPalette.jsx +++ b/apps/common/mobile/lib/component/ThemeColorPalette.jsx @@ -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;