mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-02 04:00:36 +00:00
Test prize amount before changing to 1
This commit is contained in:
parent
d37ee98c6d
commit
063995d5e4
1 changed files with 1 additions and 1 deletions
|
|
@ -358,7 +358,7 @@ habitrpg.controller("ChallengesCtrl", ['$rootScope','$scope', 'Shared', 'User',
|
||||||
|
|
||||||
_calculateMaxPrize(gid);
|
_calculateMaxPrize(gid);
|
||||||
|
|
||||||
if (gid == TAVERN_ID) {
|
if (gid == TAVERN_ID && !($scope.newChallenge.prize > 0)) {
|
||||||
$scope.newChallenge.prize = 1;
|
$scope.newChallenge.prize = 1;
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue