mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-24 14:54:20 +08:00
fixed a bug where losing a streak would not save max streak length correclty
This commit is contained in:
parent
6779e05ae9
commit
a273372990
1 changed files with 1 additions and 1 deletions
|
@ -915,7 +915,7 @@ export async function updateStreak(
|
|||
const streak: MonkeyTypes.UserStreak = {
|
||||
lastResultTimestamp: user.streak?.lastResultTimestamp ?? 0,
|
||||
length: user.streak?.length ?? 0,
|
||||
maxLength: user.streak?.length ?? 0,
|
||||
maxLength: user.streak?.maxLength ?? 0,
|
||||
};
|
||||
|
||||
if (isYesterday(streak.lastResultTimestamp)) {
|
||||
|
|
Loading…
Reference in a new issue