Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
dkmyta committed Nov 8, 2024
1 parent ec476f6 commit ac20168
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,14 +106,14 @@ export default function ThreatsStatusToggleGroupControl( {

const selectedValue = useMemo( () => {
if ( isStatusFilterSelected( [ 'current' ] ) ) {
return 'active' as const;
return 'active' as const;
}
if ( isStatusFilterSelected( [ 'fixed', 'ignored' ] ) ) {
return 'historic' as const;
}
return '' as const;
}, [ isStatusFilterSelected ] );

if ( ! ( activeThreatsCount + historicThreatsCount ) ) {
return null;
}
Expand Down

0 comments on commit ac20168

Please sign in to comment.