Skip to content

Commit a156ade

Browse files
committed
removed unwanted comments
1 parent 0a641ec commit a156ade

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/pages/News/NewsPage.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ const NewsPage: React.FC = () => {
6868
}, []);
6969

7070
useEffect(() => {
71-
// Don't decide active category until categories have been loaded
7271
if (!categories.length) return;
7372
if (categoryParam) {
7473
const formatted = categoryParam.toLowerCase().replace(/-/g, ' ').trim();
@@ -89,7 +88,6 @@ const NewsPage: React.FC = () => {
8988
}, [location.search]);
9089

9190
useEffect(() => {
92-
// Wait until posts/categories load before syncing URL to avoid overwriting category from URL
9391
if (!categories.length) return;
9492
const pathCat =
9593
activeCategory === 'All'

0 commit comments

Comments
 (0)