fix refresh 2

This commit is contained in:
Matias Alejo Garcia 2017-06-23 10:38:05 -03:00
parent 5bcc0b072d
commit 2c51b48961
No known key found for this signature in database
GPG Key ID: 02470DB551277AB3
1 changed files with 4 additions and 2 deletions

View File

@ -276,11 +276,12 @@ angular.module('copayApp.controllers').controller('confirmController', function(
updateAmount();
showSendMaxWarning(sendMaxInfo);
}
refresh();
// txp already generated for this wallet?
if (tx.txp[wallet.id])
if (tx.txp[wallet.id]) {
refresh();
return cb();
}
getTxp(lodash.clone(tx), wallet, opts.dryRun, function(err, txp) {
if (err) return cb(err);
@ -297,6 +298,7 @@ angular.module('copayApp.controllers').controller('confirmController', function(
tx.txp[wallet.id] = txp;
$log.debug('Confirm. TX Fully Updated for wallet:' + wallet.id, tx);
refresh();
return cb();
});