From fc85a23ded28b8db24aa207fb72b130e9b202031 Mon Sep 17 00:00:00 2001
From: cociugsergiu <sergiu.cociug@endava.com>
Date: Mon, 15 Mar 2021 13:10:50 +0200
Subject: [PATCH] fix: small default color correction

---
 app/theme/index.js | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/app/theme/index.js b/app/theme/index.js
index 7580f717eb..fd03941b8b 100644
--- a/app/theme/index.js
+++ b/app/theme/index.js
@@ -15,14 +15,17 @@ import {
 
 import brandConfig from '../brandConfig.json'
 
-const validateInstanceConfigColors = (colorCode) => {
-  const defaultInstanceColor = '#2fca66';
-  const hexaDecimalRegex = /^#[0-9A-F]{6}$/i;
-  const shortHexaDecimalRegex = /^#([0-9A-F]{3}){1,2}$/i;
+const validateInstanceConfigColors = colorCode => {
+  const defaultInstanceColor = '#2fac66'
+  const hexaDecimalRegex = /^#[0-9A-F]{6}$/i
+  const shortHexaDecimalRegex = /^#([0-9A-F]{3}){1,2}$/i
 
   if (colorCode.length <= 4) {
-    return colorCode.match(shortHexaDecimalRegex) ? colorCode : defaultInstanceColor
+    return colorCode.match(shortHexaDecimalRegex)
+      ? colorCode
+      : defaultInstanceColor
   }
+
   return colorCode.match(hexaDecimalRegex) ? colorCode : defaultInstanceColor
 }
 
-- 
GitLab