mirror of
https://github.com/ankitects/anki.git
synced 2026-01-07 02:53:54 -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,
|
||||
});
|
||||
} else {
|
||||
const mostRecent = daysEnd <= 0 ? Math.abs(daysEnd - 1) : 0;
|
||||
const oldest = -daysStart;
|
||||
return tr.statisticsDaysAgoRange({
|
||||
daysStart: mostRecent,
|
||||
daysEnd: oldest,
|
||||
daysStart: Math.abs(daysEnd - 1),
|
||||
daysEnd: -daysStart,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue