mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 23:27:26 +01:00
may be fix for #1560
This commit is contained in:
@@ -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});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user