Whoops, fix streak days calculation

This commit is contained in:
Alex Gleason 2025-02-07 12:06:34 -06:00
parent c476596d0a
commit af262b5d52
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -81,7 +81,7 @@ async function renderAccount(
streakEnd = null; streakEnd = null;
} else { } else {
const delta = streakEnd - streakStart; const delta = streakEnd - streakStart;
streakDays = Math.max(Math.ceil(delta / streakWindow), 1); streakDays = Math.max(Math.ceil(delta / 86400), 1);
} }
} }