From af262b5d524993da1b733acdd235ccb1e47f27d1 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Fri, 7 Feb 2025 12:06:34 -0600 Subject: [PATCH] Whoops, fix streak days calculation --- src/views/mastodon/accounts.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/mastodon/accounts.ts b/src/views/mastodon/accounts.ts index 0c2d1dcc..99dd3523 100644 --- a/src/views/mastodon/accounts.ts +++ b/src/views/mastodon/accounts.ts @@ -81,7 +81,7 @@ async function renderAccount( streakEnd = null; } else { const delta = streakEnd - streakStart; - streakDays = Math.max(Math.ceil(delta / streakWindow), 1); + streakDays = Math.max(Math.ceil(delta / 86400), 1); } }