mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
fix(teams): don't adjust source task value for rewards Fixes #12523
This commit is contained in:
@@ -277,7 +277,7 @@ TaskSchema.statics.sanitizeReminder = function sanitizeReminder (reminderObj) {
|
||||
TaskSchema.methods.scoreChallengeTask = async function scoreChallengeTask (delta, direction) {
|
||||
const chalTask = this;
|
||||
|
||||
chalTask.value += delta;
|
||||
if (chalTask.type !== 'reward') chalTask.value += delta;
|
||||
|
||||
if (chalTask.type === 'habit' || chalTask.type === 'daily') {
|
||||
// Add only one history entry per day
|
||||
|
||||
Reference in New Issue
Block a user