mirror of https://github.com/BTCPrivate/copay.git
added wallet arg to updateTxs
This commit is contained in:
parent
dcb561a2b0
commit
f693d17a47
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue