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 d8ec6d4 commit 0994ee5Copy full SHA for 0994ee5
speakeasyapp/src/components/MainPage.js
@@ -39,6 +39,8 @@ const MainPage = () => {
39
const timeDifference = (currentTime - parseInt(loginTime)) / 60000;
40
const progress = (timeDifference / user.dailyTarget) * 100;
41
42
+ if(progress > 99) alert("You've hit your daily goal of " + user.dailyTarget + " minutes!");
43
+
44
setProgressPercentage(progress);
45
}
46
}, [user.dailyTarget]);
0 commit comments