mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 23:27:26 +01:00
fix typo in history preening
This commit is contained in:
@@ -50,7 +50,7 @@ export function preenHistory (history, isSubscribed, timezoneOffset) {
|
|||||||
return date.isSame(monthsCutOff) || date.isAfter(monthsCutOff);
|
return date.isSame(monthsCutOff) || date.isAfter(monthsCutOff);
|
||||||
});
|
});
|
||||||
// Aggregate remaining entries by month and year
|
// Aggregate remaining entries by month and year
|
||||||
if (history.length > 0) newHistory.unshift(..._aggregate(aggregateByMonth, 'YYYYMM'));
|
if (aggregateByMonth.length > 0) newHistory.unshift(..._aggregate(aggregateByMonth, 'YYYYMM'));
|
||||||
if (history.length > 0) newHistory.unshift(..._aggregate(history, 'YYYY'));
|
if (history.length > 0) newHistory.unshift(..._aggregate(history, 'YYYY'));
|
||||||
|
|
||||||
return newHistory;
|
return newHistory;
|
||||||
|
|||||||
Reference in New Issue
Block a user