diff --git a/js/gui.js b/js/gui.js index d3d2826e8..243cbc7ce 100644 --- a/js/gui.js +++ b/js/gui.js @@ -403,7 +403,7 @@ var SettingsPage = React.createClass({ onRunOnStartChange: function (event) { this.storeSetting('run_on_startup', event.target.checked); }, - onChareDataChange: function (event) { + onShareDataChange: function (event) { this.storeSetting('upload_log', event.target.checked); }, onDownloadDirChange: function(event) { @@ -433,15 +433,15 @@ var SettingsPage = React.createClass({ }, getInitialState: function() { return { - isMaxUpload: false, - isMaxDownload: false, settings: null } }, componentWillMount: function() { lbry.getSettings(function(settings) { this.setState({ - settings: settings + settings: settings, + isMaxUpload: settings.max_upload != 0, + isMaxDownload: settings.max_download != 0 }); }.bind(this)); }, @@ -460,7 +460,7 @@ var SettingsPage = React.createClass({

Run on startup

@@ -472,25 +472,25 @@ var SettingsPage = React.createClass({

Share diagnostic data

Bandwidth limits

How much of your upload bandwidth may LBRY use? How much of your download bandwidth may LBRY use?