Skip to content

Commit d25dabb

Browse files
committed
Fix ESLint warnings for useEffect dependencies
1 parent 7bf8f9c commit d25dabb

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/App.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ function App() {
6868
.catch(error => {
6969
console.error('Error fetching all coins', error);
7070
});
71+
// eslint-disable-next-line react-hooks/exhaustive-deps
7172
}, []);
7273

7374
useEffect(() => {
@@ -93,6 +94,7 @@ function App() {
9394
.catch(error => {
9495
console.error('Error fetching data', error);
9596
});
97+
// eslint-disable-next-line react-hooks/exhaustive-deps
9698
}, [holdings]);
9799

98100
const handleCoinSelect = (id) => {

0 commit comments

Comments
 (0)