From 7e327c84813c140a4cda87a4227a0b6d1e8159a4 Mon Sep 17 00:00:00 2001 From: Vincent Date: Thu, 1 Aug 2024 14:26:58 +0200 Subject: [PATCH] Clarify that disabled flags aren't enabled --- .../admin/feature-flags/components/FlagEditor.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/app/(proper_react)/(redesign)/(authenticated)/admin/feature-flags/components/FlagEditor.tsx b/src/app/(proper_react)/(redesign)/(authenticated)/admin/feature-flags/components/FlagEditor.tsx index 8378e7a6f59..b6ece47045c 100644 --- a/src/app/(proper_react)/(redesign)/(authenticated)/admin/feature-flags/components/FlagEditor.tsx +++ b/src/app/(proper_react)/(redesign)/(authenticated)/admin/feature-flags/components/FlagEditor.tsx @@ -72,7 +72,11 @@ export const FlagEditor = (props: { flag: FeatureFlagRow }) => { {(props.flag.allow_list?.length ?? 0) - unAllowlistedAddresses.length === 0 && newAllowlistedAddresses.length === 0 ? ( - <>Enabled for everyone + <> + {props.flag.is_enabled + ? "Enabled for everyone" + : "Would be enabled for everyone"} + ) : ( <>Only enable for: )}