Skip to content

Commit 45842c3

Browse files
committed
Fix dependencies in app
1 parent afb72f4 commit 45842c3

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
@@ -22,7 +22,7 @@ function App() {
2222
return () => {
2323
clearInterval(interval); //clear interval when component unmounts
2424
};
25-
}, [points, pointsPerSecond, seconds]);
25+
}, [points, pointsPerSecond, seconds, updateAutoClickers, updateClickers]);
2626
function checkPointsForUpgrade(points, pointsRequired) {
2727
//check if user has enough points to upgrade
2828
if (pointsRequired !== 0 && points >= pointsRequired) {

0 commit comments

Comments
 (0)