mirror of https://github.com/BTCPrivate/copay.git
fix save history array
This commit is contained in:
parent
99e4d11ace
commit
dfd7bdfe6a
|
@ -392,7 +392,7 @@ export class WalletProvider {
|
||||||
}
|
}
|
||||||
|
|
||||||
private updateTxHistory_(wallet: any, txsFromLocal: any, txsFromServer?: any) {
|
private updateTxHistory_(wallet: any, txsFromLocal: any, txsFromServer?: any) {
|
||||||
let array = lodash.compact(txsFromLocal.concat(lodash.map(txsFromServer, 'res')));
|
let array = txsFromLocal.concat(txsFromServer.res);
|
||||||
let newHistory = lodash.uniqBy(array, (x: any) => {
|
let newHistory = lodash.uniqBy(array, (x: any) => {
|
||||||
return x.txid;
|
return x.txid;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue