From efc5f6944e45fc93450338f09f892e88363ded54 Mon Sep 17 00:00:00 2001
From: GithubAnon0000 <160563432+GithubAnon0000@users.noreply.github.com>
Date: Tue, 20 May 2025 15:07:04 +0200
Subject: [PATCH] Run ./check and fix errors found by it
---
ts/routes/card-info/forgetting-curve.ts | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/ts/routes/card-info/forgetting-curve.ts b/ts/routes/card-info/forgetting-curve.ts
index 9cefe7d9e..b54748b19 100644
--- a/ts/routes/card-info/forgetting-curve.ts
+++ b/ts/routes/card-info/forgetting-curve.ts
@@ -339,8 +339,11 @@ export function renderForgettingCurve(
1,
);
let text = tooltipText(d);
+ const desiredRetentionPercent = desiredRetention * 100;
if (y2 >= lineY - 10 && y2 <= lineY + 10) {
- text += `
${tr.cardStatsFsrsForgettingCurveDesiredRetention()}: ${desiredRetention.toFixed(2) * 100}%`;
+ text += `
${tr.cardStatsFsrsForgettingCurveDesiredRetention()}: ${
+ desiredRetentionPercent.toFixed(2)
+ }%`;
}
showTooltip(text, x1, y1);
})