From 76c85420a5e410b52f3327994a47d7fc939b77ed Mon Sep 17 00:00:00 2001 From: Miodec Date: Thu, 25 Apr 2024 12:41:06 +0200 Subject: [PATCH] fix(profile): streak hover text saying that it can still be continued even though its already too late --- frontend/src/ts/elements/profile.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/ts/elements/profile.ts b/frontend/src/ts/elements/profile.ts index 9e16fb2a1..3e49ca17d 100644 --- a/frontend/src/ts/elements/profile.ts +++ b/frontend/src/ts/elements/profile.ts @@ -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);