Corrected function

This commit is contained in:
Blade Barringer
2015-04-16 07:39:55 -05:00
parent 999e0188f2
commit 4853c0814d
2 changed files with 3 additions and 3 deletions

View File

@@ -20,7 +20,7 @@ habitrpg.controller("GroupsCtrl", ['$scope', '$rootScope', 'Shared', 'Groups', '
// If the group is a guild, just check for an intersection with the
// current user's guilds, rather than checking the members of the group.
if(group.type === 'guild') {
return _.detect(Groups.myGuilds(), function(g) { return g._id === group._id });
return _.detect(Groups.myGuilds(), function(g) { return g._id === group._id }) ? true : false;
}
if (!group.members) return false;