feat: extracted renderer from /stats

This commit is contained in:
TresAbhi committed 2023-06-23 01:35:15 +00:00
1 parent bcbc1e259f
commit 752f9b339b
21 files changed
+329 -273

No files matched your search

+1 -1
View File
@@ -7,6 +7,6 @@ export default function getPeriodStart(period: Exclude<Period, 'custom'>) {
} else if (period === 'today') {
return getTimeDaysAgo(0);
} else {
return getTimeDaysAgo(Number(period));
return getTimeDaysAgo(parseInt(period));
}
}