mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-22 03:34:14 +00:00
v3 client: fix ability to leave challenge
This commit is contained in:
parent
4c056426e8
commit
0f7964cac1
1 changed files with 1 additions and 1 deletions
|
|
@ -277,7 +277,7 @@ habitrpg.controller("ChallengesCtrl", ['$rootScope','$scope', 'Shared', 'User',
|
|||
if (keep == 'cancel') {
|
||||
$scope.selectedChal = undefined;
|
||||
} else {
|
||||
Challenges.leaveChallenge(challenge._id, keep)
|
||||
Challenges.leaveChallenge($scope.selectedChal._id, keep)
|
||||
.then(function (response) {
|
||||
_getChallenges()
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue