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') {
|
if (keep == 'cancel') {
|
||||||
$scope.selectedChal = undefined;
|
$scope.selectedChal = undefined;
|
||||||
} else {
|
} else {
|
||||||
Challenges.leaveChallenge(challenge._id, keep)
|
Challenges.leaveChallenge($scope.selectedChal._id, keep)
|
||||||
.then(function (response) {
|
.then(function (response) {
|
||||||
_getChallenges()
|
_getChallenges()
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user