mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
v3 client: fix ability to leave challenge
This commit is contained in:
@@ -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()
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user