diff --git a/index.html b/index.html index e95a449..c00e454 100644 --- a/index.html +++ b/index.html @@ -167,11 +167,11 @@ result?.map(item => { if (moment(item.time).isAfter(nearlyWeekS)) { nearlyWeek.unshift(item); - } - if (moment(item.time).isAfter(nearlyWeekS)) { - nearlyMonth.unshift(item); - } - if (moment(item.time).isAfter(lastThreeMonthsS)) { + } else if (moment(item.time).isAfter(nearlyWeekS)) { + nearlyMonth = [...nearlyWeek]; + nearlyWeek.unshift(item); + } if (moment(item.time).isAfter(lastThreeMonthsS)) { + lastThreeMonths = [...nearlyWeekS] lastThreeMonths.unshift(item); } })