Skip to content

Commit 2f61d45

Browse files
authored
Update README.md
1 parent fa4aacd commit 2f61d45

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,7 @@ import { useEffect, useState } from "react";
200200
const TopTrending = () => {
201201
const [trendingReports, setTrendingReports] = useState([]);
202202
useEffect(() => {
203-
getTopTrendingReports().then((reports) => {
204-
setTrendingReports(reports);
205-
});
203+
getTopTrendingReports().then(setTrendingReports);
206204
}, []);
207205

208206
return (

0 commit comments

Comments
 (0)