mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
added message for challenges that could not be found - fixes #5538
closes #8176
This commit is contained in:
committed by
Blade Barringer
parent
a2dd82b6db
commit
b094fb1e52
@@ -493,6 +493,8 @@ habitrpg.controller("ChallengesCtrl", ['$rootScope','$scope', 'Shared', 'User',
|
||||
.then(function (response) {
|
||||
var challenge = response.data.data;
|
||||
$scope.challenges = [challenge];
|
||||
}).catch(function(err) {
|
||||
$scope.challengeErrorMsg = err.data.message;
|
||||
});
|
||||
} else {
|
||||
Challenges.getUserChallenges()
|
||||
|
||||
Reference in New Issue
Block a user