fix keys used in response from get_transaction_history

This commit is contained in:
Jack Robison 2016-09-05 13:20:34 -04:00 committed by GitHub
parent 9527d1abc0
commit 3be312736b

View file

@ -125,7 +125,7 @@ var TransactionList = React.createClass({
if (!(txid in condensedTransactions)) {
condensedTransactions[txid] = 0;
}
condensedTransactions[txid] += parseFloat(tx["amount"]);
condensedTransactions[txid] += parseFloat(tx["value"]);
});
results.reverse().forEach(function(tx) {
var txid = tx["txid"];
@ -133,7 +133,7 @@ var TransactionList = React.createClass({
{
transactionItems.push({
id: txid,
date: new Date(parseInt(tx["time"]) * 1000),
date: new Date(parseInt(tx["timestamp"]) * 1000),
amount: condensedTransactions[txid]
});
delete condensedTransactions[txid];