mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-14 21:27:23 +01:00
Added support for scoring group tasks down after approval (#9623)
* Added support for scoring group tasks down after approval * Fixed lint issues
This commit is contained in:
@@ -568,10 +568,14 @@ export default {
|
||||
let approvedTasks = [];
|
||||
for (let i = 0; i < scoreTaskNotification.length; i++) {
|
||||
// Array with all approved tasks
|
||||
const scoreData = scoreTaskNotification[i].data;
|
||||
let direction = 'up';
|
||||
if (scoreData.direction) direction = scoreData.direction;
|
||||
|
||||
approvedTasks.push({
|
||||
params: {
|
||||
task: scoreTaskNotification[i].data.scoreTask,
|
||||
direction: 'up',
|
||||
task: scoreData.scoreTask,
|
||||
direction,
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user