Skip to content

Commit

Permalink
Change api key
Browse files Browse the repository at this point in the history
  • Loading branch information
longtv2222 committed Nov 20, 2022
1 parent 6978552 commit 5c1b753
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Interest.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const Interest: React.FC<{ name: string }> = ({ name }) => {

React.useEffect(() => {
fetch(
`https://newsapi.org/v2/everything?q=${name}&sortBy=popularity&apiKey=72a551cf0da246c7abde552db5f33b85`
`https://newsapi.org/v2/everything?q=${name}&sortBy=popularity&apiKey=e787a6bc56e648bd805e5dac153a102e`
)
.then((res) => res.json())
.then((data) => setArticles(data.articles.slice(0, 5)));
Expand Down

0 comments on commit 5c1b753

Please sign in to comment.