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