File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -115,11 +115,11 @@ function fillMostListWithoutToday(days: TabDay[]) {
115115 } ) ;
116116
117117 if ( sortedByTimeDaysWithoutToday . length == 0 ) return null ;
118- const mostActiveDayExceptToday = sortedByTimeDaysWithoutToday [ 0 ] ;
118+ const mostActiveDayExceptToday =
119+ sortedByTimeDaysWithoutToday [ sortedByTimeDaysWithoutToday . length - 1 ] ;
119120 const mostActiveDayObjExceptToday = fillMostDay ( mostActiveDayExceptToday ) ;
120121
121- const mostInactiveDayExceptToday =
122- sortedByTimeDaysWithoutToday [ sortedByTimeDaysWithoutToday . length - 1 ] ;
122+ const mostInactiveDayExceptToday = sortedByTimeDaysWithoutToday [ 0 ] ;
123123 const mostInactiveDayObjExceptToday = fillMostDay ( mostInactiveDayExceptToday ) ;
124124
125125 return {
@@ -133,10 +133,10 @@ function fillMostList(days: TabDay[]) {
133133 return a . summary - b . summary ;
134134 } ) ;
135135
136- const mostActiveDay = sortedByTimeDays [ 0 ] ;
136+ const mostActiveDay = sortedByTimeDays [ sortedByTimeDays . length - 1 ] ;
137137 const mostActiveDayObj = fillMostDay ( mostActiveDay ) ;
138138
139- const mostInactiveDay = sortedByTimeDays [ sortedByTimeDays . length - 1 ] ;
139+ const mostInactiveDay = sortedByTimeDays [ 0 ] ;
140140 const mostInactiveDayObj = fillMostDay ( mostInactiveDay ) ;
141141
142142 return {
You can’t perform that action at this time.
0 commit comments