Fix gravatar on sidebar

This commit is contained in:
Gustavo Maximiliano Cortez 2015-02-04 12:30:12 -03:00
commit f9b292e80e
5 changed files with 33 additions and 27 deletions

View file

@ -1,7 +1,7 @@
'use strict';
angular.module('copayApp.controllers').controller('HeadController', function($scope, $rootScope, $filter, $timeout, notification, identityService, balanceService) {
$scope.username = $rootScope.iden.getName();
$scope.username = $rootScope.iden ? $rootScope.iden.getName() : '';
$scope.hoverMenu = false;
var isChromeApp = typeof window !== "undefined" && window.chrome && chrome.runtime && chrome.runtime.id;