We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08340b2 commit e16b3b9Copy full SHA for e16b3b9
src/App.js
@@ -19,7 +19,7 @@ function App() {
19
return () => {
20
clearInterval(interval); //clear interval when component unmounts
21
};
22
- }, [points, pointsPerSecond]);
+ }, [points, pointsPerSecond, seconds]);
23
function checkPointsForUpgrade(points, pointsRequired) {
24
//check if user has enough points to upgrade
25
if (pointsRequired !== 0 && points >= pointsRequired) {
0 commit comments