Run ./check and fix errors found by it

This commit is contained in:
GithubAnon0000 2025-05-20 15:07:04 +02:00
parent 550aa21e09
commit efc5f6944e

View file

@ -339,8 +339,11 @@ export function renderForgettingCurve(
1,
);
let text = tooltipText(d);
const desiredRetentionPercent = desiredRetention * 100;
if (y2 >= lineY - 10 && y2 <= lineY + 10) {
text += `<br>${tr.cardStatsFsrsForgettingCurveDesiredRetention()}: ${desiredRetention.toFixed(2) * 100}%`;
text += `<br>${tr.cardStatsFsrsForgettingCurveDesiredRetention()}: ${
desiredRetentionPercent.toFixed(2)
}%`;
}
showTooltip(text, x1, y1);
})