Set default group to tavern if no default group is found

This commit is contained in:
Blade Barringer
2015-07-24 10:20:37 -05:00
parent fe2fb6deba
commit fb6a34c2ed

View File

@@ -54,6 +54,8 @@ habitrpg.controller("ChallengesCtrl", ['$rootScope','$scope', 'Shared', 'User',
}
}
if(!defaultGroup) defaultGroup = 'habitrpg';
$scope.obj = $scope.newChallenge = new Challenges.Challenge({
name: '',
description: '',