mirror of
https://github.com/ankitects/anki.git
synced 2026-01-09 03:53:55 -05:00
reverted changes in time.ts
This commit is contained in:
parent
b674bd142c
commit
e6ed5f6d8d
1 changed files with 2 additions and 4 deletions
|
|
@ -178,11 +178,9 @@ export function dayLabel(daysStart: number, daysEnd: number): string {
|
||||||
daysEnd: daysEnd - 1,
|
daysEnd: daysEnd - 1,
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
const mostRecent = daysEnd <= 0 ? Math.abs(daysEnd - 1) : 0;
|
|
||||||
const oldest = -daysStart;
|
|
||||||
return tr.statisticsDaysAgoRange({
|
return tr.statisticsDaysAgoRange({
|
||||||
daysStart: mostRecent,
|
daysStart: Math.abs(daysEnd - 1),
|
||||||
daysEnd: oldest,
|
daysEnd: -daysStart,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue