Skip to content

Commit

Permalink
Merge pull request #564 from BillionOysterProject/staging
Browse files Browse the repository at this point in the history
Staging
  • Loading branch information
kekey1 committed Oct 31, 2017
2 parents df7ec07 + d8f803f commit 45677f8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@

if ($scope.currentUser) {
var memberIndex = lodash.findIndex(allTeamMembers, function(m) {
return m.username === $scope.currentUser.username;
return m && (m.username === $scope.currentUser.username);
});
return (memberIndex > -1) ? true : false;
} else {
Expand Down

0 comments on commit 45677f8

Please sign in to comment.