Skip to content

Commit f00d11f

Browse files
committed
count issues meeting threshold in IssueList
1 parent 32819ed commit f00d11f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/devtools-a11y/src/core/components/IssueList.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ export function A11yIssueList(props: A11yIssueListProps) {
8181
{(impact) => {
8282
const count = () =>
8383
ally.allyResult.audit?.issues.reduce(
84-
(count, issue) => (issue.impact === impact ? count + 1 : count),
84+
(count, issue) => (
85+
issue.impact === impact && issue.meetsThreshold ? count + 1 : count),
8586
0,
8687
) || 0
8788

0 commit comments

Comments
 (0)