retrieving label from address book

This commit is contained in:
Ivan Socolsky 2014-10-23 11:38:56 -03:00 committed by Matias Alejo Garcia
commit b6f5b342f2
3 changed files with 54 additions and 11 deletions

View file

@ -82,16 +82,7 @@ angular.module('copayApp.controllers').controller('SendController',
}
$scope.showAddressBook = function() {
var flag;
if (w) {
for (var k in w.addressBook) {
if (w.addressBook[k]) {
flag = true;
break;
}
}
}
return flag;
return w && _.keys(w.addressBook).length > 0;
};
if ($rootScope.pendingPayment) {