Merge pull request #1613 from bechi/bugs/ui-07

Bugs/ui 07
This commit is contained in:
Matias Alejo Garcia 2014-10-30 17:48:44 -03:00
commit 4afcad4601
7 changed files with 97 additions and 63 deletions

View file

@ -2840,7 +2840,7 @@ Wallet.prototype.getTransactionHistory = function(cb) {
tx.amountSat = Math.abs(amount);
tx.amount = tx.amountSat * satToUnit;
tx.sentTs = proposal ? proposal.sentTs : undefined;
tx.minedTs = tx.time * 1000;
tx.minedTs = !_.isNaN(tx.time) ? tx.time * 1000 : undefined;
};
if (addresses.length > 0) {
@ -2850,6 +2850,7 @@ Wallet.prototype.getTransactionHistory = function(cb) {
var history = _.map(txs, function(tx) {
decorateTx(tx);
console.log(tx);
return tx;
});
return cb(null, history);