diff --git a/ts/lib/tslib/time.ts b/ts/lib/tslib/time.ts index 0e6330f38..25d70eef3 100644 --- a/ts/lib/tslib/time.ts +++ b/ts/lib/tslib/time.ts @@ -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, }); } }