Fix address view for new wallets
This commit is contained in:
parent
70fa50177c
commit
2a45533797
2 changed files with 2 additions and 2 deletions
|
|
@ -74,7 +74,7 @@ angular.module('copayApp.controllers').controller('addressesController', functio
|
||||||
walletService.getLowUtxos($scope.wallet, levels, function(err, resp) {
|
walletService.getLowUtxos($scope.wallet, levels, function(err, resp) {
|
||||||
if (err) return;
|
if (err) return;
|
||||||
|
|
||||||
if (resp.allUtxos && resp.allUtxos.length) {
|
if (resp && resp.allUtxos && resp.allUtxos.length) {
|
||||||
|
|
||||||
|
|
||||||
var allSum = lodash.sum(resp.allUtxos || 0, 'satoshis');
|
var allSum = lodash.sum(resp.allUtxos || 0, 'satoshis');
|
||||||
|
|
|
||||||
|
|
@ -939,7 +939,7 @@ angular.module('copayApp.services').factory('walletService', function($log, $tim
|
||||||
|
|
||||||
root.getLowUtxos = function(wallet, levels, cb) {
|
root.getLowUtxos = function(wallet, levels, cb) {
|
||||||
|
|
||||||
wallet.getUtxos({}, function(err, resp) {
|
wallet.getUtxos({coin: wallet.coin}, function(err, resp) {
|
||||||
if (err || !resp || !resp.length) return cb();
|
if (err || !resp || !resp.length) return cb();
|
||||||
|
|
||||||
var minFee = root.getMinFee(wallet, levels, resp.length);
|
var minFee = root.getMinFee(wallet, levels, resp.length);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue