rm dups
This commit is contained in:
parent
a55585b742
commit
af581286cd
1 changed files with 24 additions and 22 deletions
|
|
@ -892,7 +892,9 @@ angular.module('copayApp.controllers').controller('indexController', function($r
|
||||||
getNewTxs([], 0, function(err, txs) {
|
getNewTxs([], 0, function(err, txs) {
|
||||||
if (err) return cb(err);
|
if (err) return cb(err);
|
||||||
|
|
||||||
var newHistory = lodash.compact(txs.concat(confirmedTxs));
|
var newHistory = lodash.uniq(lodash.compact(txs.concat(confirmedTxs)), function(x) {
|
||||||
|
return x.txid;
|
||||||
|
});
|
||||||
var historyToSave = JSON.stringify(newHistory);
|
var historyToSave = JSON.stringify(newHistory);
|
||||||
|
|
||||||
lodash.each(txs, function(tx) {
|
lodash.each(txs, function(tx) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue