diff --git a/src/renderer/pages/preferences-page.js b/src/renderer/pages/preferences-page.js index 52ebe7ee..3dd32adf 100644 --- a/src/renderer/pages/preferences-page.js +++ b/src/renderer/pages/preferences-page.js @@ -67,7 +67,7 @@ class PreferencesPage extends React.Component { @@ -113,7 +113,7 @@ class PreferencesPage extends React.Component { { this.handleAutoAddTorrentsChange(e, value) }} /> @@ -122,7 +122,7 @@ class PreferencesPage extends React.Component { } handleAutoAddTorrentsChange (e, isChecked) { - const torrentsFolderPath = this.props.state.unsaved.prefs.torrentsFolderPath + const torrentsFolderPath = this.props.state.saved.prefs.torrentsFolderPath if (isChecked && !torrentsFolderPath) { alert('Select a torrents folder first.') // eslint-disable-line e.preventDefault() @@ -140,7 +140,7 @@ class PreferencesPage extends React.Component { } torrentsFolderPathSelector () { - const torrentsFolderPath = this.props.state.unsaved.prefs.torrentsFolderPath + const torrentsFolderPath = this.props.state.saved.prefs.torrentsFolderPath return (