Updates to Revenue report.
This commit is contained in:
1 parent
4995a0e1e4
commit
095d1f2070
19 files changed
+365
-416
No files matched your search
+2
-1
@@ -145,6 +145,7 @@ export function parseDateRange(value: string | object, locale = 'en-US'): DateRa
|
||||
|
||||
const startDate = new Date(+startTime);
|
||||
const endDate = new Date(+endTime);
|
||||
const unit = getMinimumUnit(startDate, endDate);
|
||||
|
||||
return {
|
||||
startDate,
|
||||
@@ -152,7 +153,7 @@ export function parseDateRange(value: string | object, locale = 'en-US'): DateRa
|
||||
value,
|
||||
...parseDateValue(value),
|
||||
offset: 0,
|
||||
unit: getMinimumUnit(startDate, endDate),
|
||||
unit,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user