Skip to content

Commit

Permalink
fix: update all rules disabled banner logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Eliezer Steinbock committed Jan 6, 2026
1 parent b9eedc7 commit 3ed4398
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 3ed4398

Please sign in to comment.