increase minimum unit for day. Last 6 months includes current month

This commit is contained in:
Francis Cao committed 2026-01-23 11:42:12 -08:00
1 parent a2f0066c42
commit 355fa1e9a9
1 file changed
+1 -1
+1 -1
View File
@@ -292,7 +292,7 @@ export function getMinimumUnit(
: differenceInDays(endDate, startDate) <= 30
) {
return 'hour';
} else if (differenceInCalendarMonths(endDate, startDate) <= 6) {
} else if (differenceInCalendarMonths(endDate, startDate) <= 7) {
return 'day';
} else if (differenceInCalendarMonths(endDate, startDate) <= 24) {
return 'month';