From b5099989df636a641cf182c26aa109ab76f6029c Mon Sep 17 00:00:00 2001
From: GithubAnon0000 <160563432+GithubAnon0000@users.noreply.github.com>
Date: Sat, 3 May 2025 00:12:16 +0200
Subject: [PATCH] Run ./check and make it happy
---
ts/routes/graphs/buttons.ts | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/ts/routes/graphs/buttons.ts b/ts/routes/graphs/buttons.ts
index 5c557f327..7606b03b2 100644
--- a/ts/routes/graphs/buttons.ts
+++ b/ts/routes/graphs/buttons.ts
@@ -224,7 +224,7 @@ export function renderButtons(
const correctStr = tr.statisticsHoursCorrect(totalCorrect(d.group));
const correctStrInfo = tr.statisticsHoursCorrectInfo();
const pressedStr = `${timesPressed}: ${totalPressedStr(d)}`;
-
+
let buttonText: string;
if (d.buttonNum === 1) {
buttonText = tr.studyingAgain();
@@ -234,8 +234,10 @@ export function renderButtons(
buttonText = tr.studyingGood();
} else if (d.buttonNum === 4) {
buttonText = tr.studyingEasy();
+ } else {
+ buttonText = "";
}
-
+
return `${button}: ${d.buttonNum} (${buttonText})
${pressedStr}
${correctStr} ${correctStrInfo}`;
}