added wallet arg to updateTxs

This commit is contained in:
Ivan Socolsky 2014-11-14 14:10:26 -03:00
parent dcb561a2b0
commit f693d17a47
1 changed files with 3 additions and 3 deletions

View File

@ -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) {