Fix address view for new wallets

This commit is contained in:
Gustavo Maximiliano Cortez 2017-08-30 15:54:30 -03:00
commit 2a45533797
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF
2 changed files with 2 additions and 2 deletions

View file

@ -74,7 +74,7 @@ angular.module('copayApp.controllers').controller('addressesController', functio
walletService.getLowUtxos($scope.wallet, levels, function(err, resp) {
if (err) return;
if (resp.allUtxos && resp.allUtxos.length) {
if (resp && resp.allUtxos && resp.allUtxos.length) {
var allSum = lodash.sum(resp.allUtxos || 0, 'satoshis');