Merge pull request #6259 from ajp8164/bug/fix-card-and-send-views

Bug/fix card and send views
This commit is contained in:
Gabriel Edgardo Bazán 2017-06-16 15:49:28 -03:00 committed by GitHub
commit c9bacc659b
4 changed files with 23 additions and 21 deletions

View file

@ -94,10 +94,10 @@ angular.module('copayApp.controllers').controller('bitpayCardController', functi
return !tx.pending && tx.type.indexOf('93') == -1;
});
self.bitpayCardTransactionHistoryConfirming = lodash.filter(txs, function(tx) {
return tx.pending;
return tx.pending && tx.type.indexOf('93') == -1;
});
self.bitpayCardTransactionHistoryPreAuth = lodash.includes(txs, function(tx) {
return tx.type.indexOf('93') > -1;
self.bitpayCardTransactionHistoryPreAuth = lodash.filter(txs, function(tx) {
return tx.pending && tx.type.indexOf('93') > -1;
});
lodash.forEach(self.bitpayCardTransactionHistoryConfirming, function(tx) {