Skip to content

Commit

Permalink
Clarify that disabled flags aren't enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinnl committed Aug 4, 2024
1 parent 05f69f0 commit 7e327c8
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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:</>
)}
Expand Down

0 comments on commit 7e327c8

Please sign in to comment.