fix arg name

This commit is contained in:
Alex Grintsvayg 2017-05-03 13:56:39 -04:00
parent 82561e3aaf
commit a450d294ca

View file

@ -32,7 +32,7 @@ var SettingsPage = React.createClass({
this.setDaemonSetting('run_on_startup', event.target.checked); this.setDaemonSetting('run_on_startup', event.target.checked);
}, },
onShareDataChange: function (event) { onShareDataChange: function (event) {
this.setDaemonSetting('share_usage_stats', event.target.checked); this.setDaemonSetting('share_usage_data', event.target.checked);
}, },
onDownloadDirChange: function(event) { onDownloadDirChange: function(event) {
this.setDaemonSetting('download_directory', event.target.value); this.setDaemonSetting('download_directory', event.target.value);
@ -197,7 +197,7 @@ var SettingsPage = React.createClass({
<div className="card__content"> <div className="card__content">
<FormRow type="checkbox" <FormRow type="checkbox"
onChange={this.onShareDataChange} onChange={this.onShareDataChange}
defaultChecked={this.state.daemonSettings.share_usage_stats} defaultChecked={this.state.daemonSettings.share_usage_data}
label="Help make LBRY better by contributing diagnostic data about my usage" /> label="Help make LBRY better by contributing diagnostic data about my usage" />
</div> </div>
</section> </section>