Commit 24c982a
committed
perf(headlines-feed): optimize followed filter activation logic
- Convert followedCountries list to a set for more efficient lookup
- Simplify the logic for checking if all selected countries are followed
- Improve performance and readability of the followed filter activation check1 parent 9e56060 commit 24c982a
1 file changed
+5
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| 94 | + | |
94 | 95 | | |
95 | | - | |
| 96 | + | |
96 | 97 | | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
102 | 101 | | |
103 | 102 | | |
104 | 103 | | |
| |||
0 commit comments