mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
v3: misc fixes
This commit is contained in:
@@ -292,8 +292,8 @@ habitrpg.controller("RootCtrl", ['$scope', '$rootScope', '$location', 'User', '$
|
||||
} else if (spell.target == 'tasks') {
|
||||
var tasks = User.user.habits.concat(User.user.dailys).concat(User.user.rewards).concat(User.user.todos);
|
||||
// exclude challenge tasks
|
||||
tasks = tasks.filter(function (t) {
|
||||
if (!t.challenge) return true;
|
||||
tasks = tasks.filter(function (task) {
|
||||
if (!task.challenge) return true;
|
||||
return (!task.challenge.id || task.challenge.broken);
|
||||
});
|
||||
$scope.castEnd(tasks, 'tasks');
|
||||
|
||||
Reference in New Issue
Block a user