mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-22 03:34:14 +00:00
v3 migration: fix challenge prize
This commit is contained in:
parent
6ab3280045
commit
708f495684
1 changed files with 1 additions and 1 deletions
|
|
@ -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';
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue