added wallet arg to updateTxs
This commit is contained in:
parent
dcb561a2b0
commit
f693d17a47
1 changed files with 3 additions and 3 deletions
|
|
@ -65,7 +65,7 @@ angular.module('copayApp.services')
|
||||||
|
|
||||||
|
|
||||||
root.updateTxsAndBalance = function(w) {
|
root.updateTxsAndBalance = function(w) {
|
||||||
root.updateTxs();
|
root.updateTxs(w);
|
||||||
root.updateBalance(w, function() {
|
root.updateBalance(w, function() {
|
||||||
$rootScope.$digest();
|
$rootScope.$digest();
|
||||||
});
|
});
|
||||||
|
|
@ -356,8 +356,8 @@ angular.module('copayApp.services')
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
root.updateTxs = function() {
|
root.updateTxs = function(w) {
|
||||||
var w = $rootScope.wallet;
|
w = w || $rootScope.wallet;
|
||||||
if (!w) return root.onErrorDigest();
|
if (!w) return root.onErrorDigest();
|
||||||
var res = w.getPendingTxProposals();
|
var res = w.getPendingTxProposals();
|
||||||
_.each(res.txs, function(tx) {
|
_.each(res.txs, function(tx) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue