fix keys used in response from get_transaction_history
This commit is contained in:
parent
9527d1abc0
commit
3be312736b
1 changed files with 2 additions and 2 deletions
|
@ -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];
|
||||||
|
|
Loading…
Reference in a new issue