From 2c51b48961ac963fdbe5a81358f5ca8ffb492dbe Mon Sep 17 00:00:00 2001 From: Matias Alejo Garcia Date: Fri, 23 Jun 2017 10:38:05 -0300 Subject: [PATCH] fix refresh 2 --- src/js/controllers/confirm.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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(); });