mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
lint common
This commit is contained in:
@@ -4,7 +4,7 @@ import filter from 'lodash/filter';
|
||||
// TODO used only in v2
|
||||
|
||||
export default function preenTodos (tasks) {
|
||||
return filter(tasks, t => !t.completed || t.challenge && t.challenge.id || moment(t.dateCompleted).isAfter(moment().subtract({
|
||||
return filter(tasks, t => !t.completed || t.challenge && t.challenge.id || moment(t.dateCompleted).isAfter(moment().subtract({ // eslint-disable-line
|
||||
days: 3,
|
||||
})));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user