fix callback in sent

This commit is contained in:
Matias Alejo Garcia 2014-04-21 11:28:25 -03:00
commit 7f20106d71
6 changed files with 27 additions and 18 deletions

View file

@ -9,9 +9,10 @@ angular.module('copay.addresses').controller('AddressesController',
var w = $rootScope.wallet;
var _updateBalance = function () {
w.getBalance(function (balance, balanceByAddr) {
w.getBalance(function (balance, balanceByAddr, isMain) {
if (balanceByAddr && Object.keys(balanceByAddr).length) {
$scope.balanceByAddr = balanceByAddr;
$scope.isMain = isMain;
$scope.addrs = Object.keys(balanceByAddr);
$scope.selectedAddr = $scope.addrs[0];
$scope.$digest();