diff --git a/js/page/wallet.js b/js/page/wallet.js index b9cbd9cab..cca61907e 100644 --- a/js/page/wallet.js +++ b/js/page/wallet.js @@ -99,7 +99,7 @@ var SendToAddressSection = React.createClass({

Results

{this.state.results} - : '' + : '' } ); @@ -111,13 +111,12 @@ var WalletPage = React.createClass({ document.title = "My Wallet"; }, /* - Below should be refactored so that balance is shared all of wallet page. Or even broader? - What is the proper React pattern for sharing a global state like balance? + Below should be refactored so that balance is shared all of wallet page. Or even broader? + What is the proper React pattern for sharing a global state like balance? */ getInitialState: function() { return { balance: "Checking balance...", - txlog: "Loading transactions...", } }, componentWillMount: function() { @@ -126,21 +125,6 @@ var WalletPage = React.createClass({ balance: results, }); }); - console.log('Trying to get transaction history...') - lbry.call('get_transaction_history', {}, (results) => { - console.log('Got transaction history:') - console.log(results) - var out = 'Transaction history loaded.' - if (results.length == 0) { - out = 'No transactions yet.' - } else { - out = JSON.stringify(results) - } - console.log(out) - this.setState({ - txlog: out, - }) - }); }, render: function() { return ( @@ -155,11 +139,7 @@ var WalletPage = React.createClass({

Claim Invite Code

-
-

Transaction History

- {this.state.txlog} -
); } -}); +}); \ No newline at end of file