mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
v3 migration: fix challenge prize
This commit is contained in:
@@ -105,7 +105,7 @@ function processChallenges (afterId) {
|
||||
var createdAt = oldChallenge.timestamp;
|
||||
|
||||
oldChallenge.memberCount = oldChallenge.members.length;
|
||||
if (!oldChallenge.prize <= 0) oldChallenge.prize = 0;
|
||||
if (oldChallenge.prize <= 0) oldChallenge.prize = 0;
|
||||
if (!oldChallenge.name) oldChallenge.name = 'challenge name';
|
||||
if (!oldChallenge.shortName) oldChallenge.name = 'challenge-name';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user