From 0579c432489c4a038e8c9f95ea3b285f5abc146f Mon Sep 17 00:00:00 2001 From: Cole Gleason Date: Sat, 18 Jan 2014 01:38:09 -0600 Subject: [PATCH] fix(profile): fix bug where empty profile displayed on username click Due to #2396, Shared was undefined in one controller. There may be other cases we should look out for. Fixes #2465 --- public/js/controllers/groupsCtrl.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/js/controllers/groupsCtrl.js b/public/js/controllers/groupsCtrl.js index d17beab766..ddb36c824f 100644 --- a/public/js/controllers/groupsCtrl.js +++ b/public/js/controllers/groupsCtrl.js @@ -58,8 +58,8 @@ habitrpg.controller("GroupsCtrl", ['$scope', '$rootScope', 'Shared', 'Groups', ' } ]) - .controller("MemberModalCtrl", ['$scope', '$rootScope', 'Members', - function($scope, $rootScope, Members) { + .controller("MemberModalCtrl", ['$scope', '$rootScope', 'Members', 'Shared', + function($scope, $rootScope, Members, Shared) { $scope.timestamp = function(timestamp){ return moment(timestamp).format('MM/DD/YYYY'); }