Skip to content

Commit e16b3b9

Browse files
committed
Fix dependencies list in React
1 parent 08340b2 commit e16b3b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/App.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function App() {
1919
return () => {
2020
clearInterval(interval); //clear interval when component unmounts
2121
};
22-
}, [points, pointsPerSecond]);
22+
}, [points, pointsPerSecond, seconds]);
2323
function checkPointsForUpgrade(points, pointsRequired) {
2424
//check if user has enough points to upgrade
2525
if (pointsRequired !== 0 && points >= pointsRequired) {

0 commit comments

Comments
 (0)