From 3be312736b0db4718c46f8fde161b4e57bd7133e Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Mon, 5 Sep 2016 13:20:34 -0400 Subject: [PATCH] fix keys used in response from get_transaction_history --- js/page/wallet.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/page/wallet.js b/js/page/wallet.js index 20a1089e2..07284dd27 100644 --- a/js/page/wallet.js +++ b/js/page/wallet.js @@ -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];