Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
7sferry authored Jun 20, 2024
1 parent fa4aacd commit 2f61d45
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,7 @@ import { useEffect, useState } from "react";
const TopTrending = () => {
const [trendingReports, setTrendingReports] = useState([]);
useEffect(() => {
getTopTrendingReports().then((reports) => {
setTrendingReports(reports);
});
getTopTrendingReports().then(setTrendingReports);
}, []);

return (
Expand Down

0 comments on commit 2f61d45

Please sign in to comment.