mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 22:42:25 -04:00
Fix DR not being in percent in the forgetting curve (#4024)
* FIX DR not displayed as % in forgetting curve * Run ./check and fix errors found by it * Round DR to full number
This commit is contained in:
parent
d39284e101
commit
ec513dfde7
1 changed files with 4 additions and 1 deletions
|
@ -339,8 +339,11 @@ export function renderForgettingCurve(
|
||||||
1,
|
1,
|
||||||
);
|
);
|
||||||
let text = tooltipText(d);
|
let text = tooltipText(d);
|
||||||
|
const desiredRetentionPercent = desiredRetention * 100;
|
||||||
if (y2 >= lineY - 10 && y2 <= lineY + 10) {
|
if (y2 >= lineY - 10 && y2 <= lineY + 10) {
|
||||||
text += `<br>${tr.cardStatsFsrsForgettingCurveDesiredRetention()}: ${desiredRetention.toFixed(2)}`;
|
text += `<br>${tr.cardStatsFsrsForgettingCurveDesiredRetention()}: ${
|
||||||
|
desiredRetentionPercent.toFixed(0)
|
||||||
|
}%`;
|
||||||
}
|
}
|
||||||
showTooltip(text, x1, y1);
|
showTooltip(text, x1, y1);
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue