Skip to content

Commit

Permalink
fix : deploy error
Browse files Browse the repository at this point in the history
  • Loading branch information
GivenBY committed Feb 20, 2024
1 parent 2a3e2d8 commit 2b46e1f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/components/News.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,14 @@ const News = (props) => {
setTotalResults(parsedData.totalResults);
setLoading(false);
props.setProgress(100);
}, []);
}, [
page,
props.country,
props.category,
props.apiKey,
props.pageSize,
props.setProgress,
]);

useEffect(() => {
document.title = `${capitalizeFirstLetter(props.category)} - GorillaNews`;
Expand Down

0 comments on commit 2b46e1f

Please sign in to comment.