From ab883da9fc19cdda54e9fe6132f130e1fbdd7be3 Mon Sep 17 00:00:00 2001 From: Chika Date: Thu, 15 Apr 2021 14:35:22 +0300 Subject: [PATCH] fix bugs after refactor --- src/client/Layout/Logo.jsx | 2 +- src/client/stores/CalculationStore/Data/values.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/client/Layout/Logo.jsx b/src/client/Layout/Logo.jsx index 23a8d38..f2b9519 100644 --- a/src/client/Layout/Logo.jsx +++ b/src/client/Layout/Logo.jsx @@ -18,7 +18,7 @@ const LogoText = styled.h3` margin: 0; margin-top: -3px; text-transform: uppercase; - color: ${colors.white[0]}; + color: ${colors.WHITE[0]}; font-size: 0.95rem; font-family: 'Montserrat'; font-weight: 500; diff --git a/src/client/stores/CalculationStore/Data/values.js b/src/client/stores/CalculationStore/Data/values.js index 1a0bb08..371adb8 100644 --- a/src/client/stores/CalculationStore/Data/values.js +++ b/src/client/stores/CalculationStore/Data/values.js @@ -45,7 +45,7 @@ const valuesActions = { }, getOption(elementName, fields) { - if (!this.options.elementName) { + if (!this.options[elementName]) { return; } if (!fields) { @@ -58,7 +58,7 @@ const valuesActions = { }); }, getOptions(elementName, fields) { - if (!this.options.elementName) { + if (!this.options[elementName]) { return; } if (!fields) return this.options[elementName];