mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-26 08:47:36 +08:00
fix(profile): streak hover text saying that it can still be continued even though its already too late
This commit is contained in:
parent
79e8566f95
commit
76c85420a5
1 changed files with 4 additions and 1 deletions
|
|
@ -174,9 +174,12 @@ export async function update(
|
|||
if (isToday) {
|
||||
hoverText += `\nClaimed today: yes`;
|
||||
hoverText += `\nCome back in: ${timeDif} ${offsetString}`;
|
||||
} else {
|
||||
} else if (isYesterday) {
|
||||
hoverText += `\nClaimed today: no`;
|
||||
hoverText += `\nStreak lost in: ${timeDif} ${offsetString}`;
|
||||
} else {
|
||||
hoverText += `\nStreak lost ${timeDif} ${offsetString} ago`;
|
||||
hoverText += `\nIt will be removed from your profile on the next result save`;
|
||||
}
|
||||
|
||||
console.debug(hoverText);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue