mirror of
https://github.com/ankitects/anki.git
synced 2025-11-10 14:47:12 -05:00
Fix incorrect count in 'added' tooltip
This commit is contained in:
parent
8206f39bdc
commit
037610715d
1 changed files with 1 additions and 1 deletions
|
|
@ -102,7 +102,7 @@ export function buildHistogram(
|
||||||
_percent: number,
|
_percent: number,
|
||||||
): string {
|
): string {
|
||||||
const day = dayLabel(bin.x0!, bin.x1!);
|
const day = dayLabel(bin.x0!, bin.x1!);
|
||||||
const cards = tr.statisticsCards({ cards: bin.length });
|
const cards = tr.statisticsCards({ cards: getNumericMapBinValue(bin as any) });
|
||||||
const total = tr.statisticsRunningTotal();
|
const total = tr.statisticsRunningTotal();
|
||||||
const totalCards = tr.statisticsCards({ cards: cumulative });
|
const totalCards = tr.statisticsCards({ cards: cumulative });
|
||||||
return `${day}:<br>${cards}<br>${total}: ${totalCards}`;
|
return `${day}:<br>${cards}<br>${total}: ${totalCards}`;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue