Skip to content
This repository has been archived by the owner on May 31, 2021. It is now read-only.

Commit

Permalink
Fixes bad Checkbox prop type
Browse files Browse the repository at this point in the history
  • Loading branch information
jfurrow committed Nov 24, 2019
1 parent 96e0d69 commit bb55350
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ import SettingsStore from '../../../stores/SettingsStore';

class AddTorrentsActions extends PureComponent {
getActions() {
const startTorrentsOnLoad = SettingsStore.getFloodSettings('startTorrentsOnLoad');
return [
{
checked: SettingsStore.getFloodSettings('startTorrentsOnLoad'),
checked: startTorrentsOnLoad === 'true' || startTorrentsOnLoad === true,
clickHandler: this.handleStartTorrentsToggle,
content: this.props.intl.formatMessage({
id: 'torrents.add.start.label',
Expand Down
2 changes: 1 addition & 1 deletion server/models/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const client = {
fileRequest.send();
});

settings.set(user, {id: 'startTorrentsOnLoad', data: start});
settings.set(user, {id: 'startTorrentsOnLoad', data: start === 'true' || start === true});
},

addUrls(user, services, data, callback) {
Expand Down

0 comments on commit bb55350

Please sign in to comment.