diff --git a/src/js/controllers/confirm.js b/src/js/controllers/confirm.js index b2c37e692..60222631e 100644 --- a/src/js/controllers/confirm.js +++ b/src/js/controllers/confirm.js @@ -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(); });