fix alternativeAmount for list of pending transactions proposals

This commit is contained in:
Gustavo Maximiliano Cortez 2014-11-07 17:02:54 -03:00
commit b71bef495a
2 changed files with 6 additions and 1 deletions

View file

@ -349,6 +349,9 @@ angular.module('copayApp.services')
var w = $rootScope.wallet;
if (!w) return root.onErrorDigest();
var res = w.getPendingTxProposals();
_.each(res.txs, function(tx) {
root.computeAlternativeAmount(w, tx);
});
$rootScope.txps = res.txs;
if ($rootScope.pendingTxCount < res.pendingForUs) {
$rootScope.txAlertCount = res.pendingForUs;