From f693d17a47241428f7cfdf65dac1242320f3bd8e Mon Sep 17 00:00:00 2001 From: Ivan Socolsky Date: Fri, 14 Nov 2014 14:10:26 -0300 Subject: [PATCH] added wallet arg to updateTxs --- js/services/controllerUtils.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/services/controllerUtils.js b/js/services/controllerUtils.js index 48a626e81..5eb2084d0 100644 --- a/js/services/controllerUtils.js +++ b/js/services/controllerUtils.js @@ -65,7 +65,7 @@ angular.module('copayApp.services') root.updateTxsAndBalance = function(w) { - root.updateTxs(); + root.updateTxs(w); root.updateBalance(w, function() { $rootScope.$digest(); }); @@ -356,8 +356,8 @@ angular.module('copayApp.services') }); }; - root.updateTxs = function() { - var w = $rootScope.wallet; + root.updateTxs = function(w) { + w = w || $rootScope.wallet; if (!w) return root.onErrorDigest(); var res = w.getPendingTxProposals(); _.each(res.txs, function(tx) {