Skip to content

Commit 970cd5e

Browse files
committed
testing news
1 parent 6388ea7 commit 970cd5e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/CryptoNewsAnalyzer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ function CryptoNewsAnalyzer({ coins }) {
77
const [error, setError] = useState(null);
88

99
useEffect(() => {
10-
const apiKey = process.env.REACT_APP_NEWS_API_KEY; // Use the environment variable
10+
const apiKey = "6c5c579db7c045039231d1b5df237f10"; // Use the environment variable
1111
axios.get(`https://newsapi.org/v2/everything?q=cryptocurrency&apiKey=${apiKey}`)
1212
.then(response => {
1313
const positiveKeywords = ['bull', 'rally', 'rise', 'gain', 'positive', 'buy', 'up'];

src/components/News.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ function NewsTicker() {
88
const [error, setError] = useState(null);
99

1010
useEffect(() => {
11-
const apiKey = process.env.REACT_APP_NEWS_API_KEY; // Use the environment variable
11+
const apiKey = "6c5c579db7c045039231d1b5df237f10"; // Use the environment variable
1212
axios.get(`https://newsapi.org/v2/everything?q=cryptocurrency&apiKey=${apiKey}`)
1313
.then(response => {
1414
setNews(response.data.articles);

0 commit comments

Comments
 (0)