From 0cd33ddadaa472523b578909fd211dfc50622b9b Mon Sep 17 00:00:00 2001 From: Akinwale Ariwodola Date: Sat, 19 May 2018 21:10:27 +0100 Subject: [PATCH] display the correct default value for the keep daemon running option --- app/src/page/settings/view.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/src/page/settings/view.js b/app/src/page/settings/view.js index 87577753..a3acff33 100644 --- a/app/src/page/settings/view.js +++ b/app/src/page/settings/view.js @@ -16,7 +16,10 @@ class SettingsPage extends React.PureComponent { showNsfw, setClientSetting } = this.props; - + + // If no true / false value set, default to true + const actualKeepDaemonRunning = (keepDaemonRunning === undefined || keepDaemonRunning === null) ? true : keepDaemonRunning; + return ( Enable this option for quicker app launch and to keep the synchronisation with the blockchain up to date. - setClientSetting(SETTINGS.KEEP_DAEMON_RUNNING, value)} /> + setClientSetting(SETTINGS.KEEP_DAEMON_RUNNING, value)} />