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
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user