fix save history array

This commit is contained in:
JDonadio 2017-11-09 17:06:52 -03:00
parent 99e4d11ace
commit dfd7bdfe6a
No known key found for this signature in database
GPG Key ID: EC1F4E04B2BFA730
1 changed files with 1 additions and 1 deletions

View File

@ -392,7 +392,7 @@ export class WalletProvider {
}
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) => {
return x.txid;
});