increase minimum unit for day. Last 6 months includes current month
This commit is contained in:
1 parent
a2f0066c42
commit
355fa1e9a9
1 file changed
+1
-1
+1
-1
@@ -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';
|
||||
|
||||
Reference in new issue
Block a user