fix sidebar when there are no wallets

This commit is contained in:
Ivan Socolsky 2014-10-21 09:51:47 -03:00 committed by Matias Alejo Garcia
commit 661deca9b0

View file

@ -36,6 +36,8 @@ angular.module('copayApp.controllers').controller('SidebarController', function(
$scope.refresh = function() {
var w = $rootScope.wallet;
if (!w) return;
if (w.isReady()) {
w.sendWalletReady();
if ($rootScope.addrInfos.length > 0) {