mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-19 04:14:40 +00:00
may be fix for #1560
This commit is contained in:
parent
6b87a2065e
commit
993a255c46
1 changed files with 2 additions and 1 deletions
|
|
@ -32,8 +32,9 @@ habitrpg.controller("TasksCtrl", ['$scope', '$rootScope', '$location', 'User', '
|
|||
}
|
||||
];
|
||||
$scope.score = function(task, direction) {
|
||||
if (task.type === "reward" && User.user.stats.gp < task.value)
|
||||
if (task.type === "reward" && User.user.stats.gp < task.value){
|
||||
return Notification.text('Not enough GP.');
|
||||
}
|
||||
Algos.score(User.user, task, direction);
|
||||
User.log({op: "score",data: task, dir: direction});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue