chore: fix build

This commit is contained in:
boojack 2022-05-19 18:35:34 +08:00
parent 6fe1db42b5
commit 304df8674a

View File

@ -47,7 +47,7 @@ const UsageHeatMap: React.FC<Props> = () => {
useEffect(() => {
const newStat: DailyUsageStat[] = getInitialUsageStat(usedDaysAmount, beginDayTimestemp);
for (const m of memos) {
const index = (utils.getDateStampByDate(m.createdAt) - beginDayTimestemp) / (1000 * 3600 * 24) - 1;
const index = (utils.getDateStampByDate(m.createdTs) - beginDayTimestemp) / (1000 * 3600 * 24) - 1;
if (index >= 0) {
newStat[index].count += 1;
}