From 54def95727ec439cd97e3751deb7c25a009b819b Mon Sep 17 00:00:00 2001 From: andreas-unleash <104830839+andreas-unleash@users.noreply.github.com> Date: Wed, 3 Aug 2022 16:43:47 +0300 Subject: [PATCH] improvements --- .../PlaygroundResultFeatureDetails.tsx | 4 ++-- .../PlaygroundResultFeatureStrategyList.tsx | 2 +- .../FeatureStatusCell/FeatureStatusCell.tsx | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/component/playground/Playground/PlaygroundResultsTable/FeatureResultInfoPopoverCell/PlaygroundResultFeatureDetails/PlaygroundResultFeatureDetails.tsx b/frontend/src/component/playground/Playground/PlaygroundResultsTable/FeatureResultInfoPopoverCell/PlaygroundResultFeatureDetails/PlaygroundResultFeatureDetails.tsx index 1286f04aff..0f724c8cf6 100644 --- a/frontend/src/component/playground/Playground/PlaygroundResultsTable/FeatureResultInfoPopoverCell/PlaygroundResultFeatureDetails/PlaygroundResultFeatureDetails.tsx +++ b/frontend/src/component/playground/Playground/PlaygroundResultsTable/FeatureResultInfoPopoverCell/PlaygroundResultFeatureDetails/PlaygroundResultFeatureDetails.tsx @@ -35,10 +35,10 @@ export const PlaygroundResultFeatureDetails = ({ const reason = feature.isEnabled === 'unevaluated' ? 'custom strategies are not evaluated yet' + : !feature.isEnabledInCurrentEnvironment + ? 'the environment is disabled' : feature.isEnabled ? 'at least one strategy is True' - : feature?.isEnabledInCurrentEnvironment - ? 'the environment is disabled' : 'all strategies are False'; const color = diff --git a/frontend/src/component/playground/Playground/PlaygroundResultsTable/FeatureResultInfoPopoverCell/PlaygroundResultFeatureStrategyList/PlaygroundResultFeatureStrategyList.tsx b/frontend/src/component/playground/Playground/PlaygroundResultsTable/FeatureResultInfoPopoverCell/PlaygroundResultFeatureStrategyList/PlaygroundResultFeatureStrategyList.tsx index 3552edfc5c..5fb74e1a9e 100644 --- a/frontend/src/component/playground/Playground/PlaygroundResultsTable/FeatureResultInfoPopoverCell/PlaygroundResultFeatureStrategyList/PlaygroundResultFeatureStrategyList.tsx +++ b/frontend/src/component/playground/Playground/PlaygroundResultsTable/FeatureResultInfoPopoverCell/PlaygroundResultFeatureStrategyList/PlaygroundResultFeatureStrategyList.tsx @@ -21,7 +21,7 @@ export const PlaygroundResultFeatureStrategyList = ({ return ( ({