From 869c8de816cfe3e3dd73c0ba6aef242d804035c2 Mon Sep 17 00:00:00 2001 From: Conor_Mack Date: Wed, 17 Jun 2020 17:50:23 +0100 Subject: [PATCH] Removing unused asString --- .../builder/src/components/userInterface/Colorpicker/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/builder/src/components/userInterface/Colorpicker/utils.js b/packages/builder/src/components/userInterface/Colorpicker/utils.js index 98f3f53f9b..e14c8711ab 100644 --- a/packages/builder/src/components/userInterface/Colorpicker/utils.js +++ b/packages/builder/src/components/userInterface/Colorpicker/utils.js @@ -160,7 +160,7 @@ export const hsvaToRgba = ([h, s, v, a = 1], asString = false) => { return asString ? `rgba(${rgba.join(",")})` : rgba } -export const hsvaToHsla = ([h, s, v, a = 1], asString = false) => { +export const hsvaToHsla = ([h, s, v, a = 1]) => { let [hue, sat, lum] = _hsvToHSL([h, s, v]) let hsla = [hue, sat + "%", lum + "%", a < 1 ? _fixNum(a, 2) : a] return `hsla(${hsla.join(",")})`