diff --git a/js/page/wallet.js b/js/page/wallet.js index 6f55d0876..7f5c536cc 100644 --- a/js/page/wallet.js +++ b/js/page/wallet.js @@ -179,7 +179,7 @@ var TransactionList = React.createClass({ { transactionItems.push({ id: txid, - date: new Date(parseInt(tx["timestamp"]) * 1000), + date: tx["timestamp"] ? (new Date(parseInt(tx["timestamp"]) * 1000)) : null, amount: condensedTransactions[txid] }); delete condensedTransactions[txid]; @@ -198,8 +198,8 @@ var TransactionList = React.createClass({ rows.push( { (item.amount > 0 ? '+' : '' ) + item.amount } - { item.date.toLocaleDateString() } - { item.date.toLocaleTimeString() } + { item.date ? item.date.toLocaleDateString() : (Transaction pending) } + { item.date ? item.date.toLocaleTimeString() : (Transaction pending) } {item.id.substr(0, 7)}