Fixed summary query.

This commit is contained in:
Mike Cao committed 2020-07-30 00:06:29 -07:00
1 parent 0c8d9eacd3
commit 344ffeb658
6 files changed
+16 -7

No files matched your search

+1 -1
View File
@@ -15,7 +15,7 @@ export default function PageviewsChart({ data, unit }) {
switch (unit) {
case 'day':
if (n > 7) {
return index % (n / 15) === 0 ? format(d, 'MMM d') : '';
return index % ~~(n / 15) === 0 ? format(d, 'MMM d') : '';
}
return format(d, 'EEE M/d');
default: