mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
Whoops, fix streak days calculation
This commit is contained in:
parent
c476596d0a
commit
af262b5d52
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue