diff --git a/web/client/utils/ColorUtils.js b/web/client/utils/ColorUtils.js index 8f32064085..2dce2a8026 100644 --- a/web/client/utils/ColorUtils.js +++ b/web/client/utils/ColorUtils.js @@ -215,8 +215,8 @@ const ColorUtils = { * @return (String) rgba string */ colorToRgbaStr: (color = "#0000FF", alpha) => { - const c = tinycolor(color); - return c.setAlpha(toNumber(alpha !== undefined ? alpha : c.getAlpha())).toRgbString() + const c = tinycolor(color); + return c.setAlpha(toNumber(alpha !== undefined ? alpha : c.getAlpha())).toRgbString(); } };