diff --git a/src/renderer/pages/preferences-page.js b/src/renderer/pages/preferences-page.js index 037dd3820c..5b4fe5a63a 100644 --- a/src/renderer/pages/preferences-page.js +++ b/src/renderer/pages/preferences-page.js @@ -105,7 +105,7 @@ class PreferencesPage extends React.Component { displayValue={playerName} onChange={this.handleExternalPlayerPathChange} title='External player' - value={playerPath ? path.dirname(playerPath) : null} + value={playerPath ? path.dirname(playerPath) : ''} /> ) @@ -159,7 +159,7 @@ class PreferencesPage extends React.Component { displayValue={torrentsFolderPath || ''} onChange={this.handleTorrentsFolderPathChange} title='Folder to watch' - value={torrentsFolderPath ? path.dirname(torrentsFolderPath) : null} + value={torrentsFolderPath ? path.dirname(torrentsFolderPath) : ''} /> )