mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-21 19:24:15 +00:00
Fixed viewing user progress on challenge
This commit is contained in:
parent
f593add576
commit
20642c9dde
1 changed files with 9 additions and 0 deletions
|
|
@ -236,6 +236,15 @@ window.habitrpg = angular.module('habitrpg',
|
|||
Members.getChallengeMemberProgress($stateParams.cid, $stateParams.uid)
|
||||
.then(function(response) {
|
||||
$scope.obj = response.data.data;
|
||||
|
||||
$scope.obj.habits = [];
|
||||
$scope.obj.todos = [];
|
||||
$scope.obj.dailys = [];
|
||||
$scope.obj.rewards = [];
|
||||
$scope.obj.tasks.forEach(function (element, index, array) {
|
||||
$scope.obj[element.type + 's'].push(element)
|
||||
});
|
||||
|
||||
$scope.obj._locked = true;
|
||||
});
|
||||
}]
|
||||
|
|
|
|||
Loading…
Reference in a new issue