diff --git a/ts/routes/graphs/buttons.ts b/ts/routes/graphs/buttons.ts index 2805f89c6..137c19d86 100644 --- a/ts/routes/graphs/buttons.ts +++ b/ts/routes/graphs/buttons.ts @@ -223,7 +223,19 @@ export function renderButtons( const timesPressed = tr.statisticsAnswerButtonsButtonPressed(); const correctStr = tr.statisticsHoursCorrect(totalCorrect(d.group)); const pressedStr = `${timesPressed}: ${totalPressedStr(d)}`; - return `${button}: ${d.buttonNum}
${pressedStr}
${correctStr}`; + + let buttonText: string; + if (d.buttonNum === 1) { + buttonText = tr.studyingAgain(); + } else if (d.buttonNum === 2) { + buttonText = tr.studyingHard(); + } else if (d.buttonNum === 3) { + buttonText = tr.studyingGood(); + } else if (d.buttonNum === 4) { + buttonText = tr.studyingEasy(); + } + + return `${button}: ${d.buttonNum} (${buttonText})
${pressedStr}
${correctStr}`; } svg.select("g.hover-columns")