Skip to content

Commit

Permalink
fit: adjust streak threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
hellos3b committed Feb 19, 2024
1 parent 0e266c6 commit 517306a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/fitness/src/MondayRecap.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ const getStreak = (weeklyExp, exp) => {
if (weeklyExp.length < 3) return Streak.CONSISTENT;

const avg = average(weeklyExp);
if (exp < avg * 0.8) return Streak.COLD;
if (exp > avg * 1.2) return Streak.HOT;
if (exp < avg * 0.6) return Streak.COLD;
if (exp > avg * 1.4) return Streak.HOT;
return Streak.CONSISTENT;
};

Expand Down

0 comments on commit 517306a

Please sign in to comment.