Skip to content

Commit

Permalink
Merge pull request #1220 from elie222/fix/all-rules-disabled-banner-l…
Browse files Browse the repository at this point in the history
…ogic
  • Loading branch information
Elie Steinbock authored and GitHub committed Jan 6, 2026
2 parents b9eedc7 + 3ed4398 commit e4d3ea3
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ export function AllRulesDisabledBanner() {

if (isLoading || !rules) return null;

const allRulesDisabled =
rules.length > 0 && rules.every((rule) => !rule.enabled);
const allRulesDisabled = rules.every((rule) => !rule.enabled);

if (!allRulesDisabled) return null;

Expand Down

0 comments on commit e4d3ea3

Please sign in to comment.