diff --git a/frontend/src/Settings/General/UpdateSettings.js b/frontend/src/Settings/General/UpdateSettings.js index 8ccf679c9..f5cd5af59 100644 --- a/frontend/src/Settings/General/UpdateSettings.js +++ b/frontend/src/Settings/General/UpdateSettings.js @@ -27,18 +27,21 @@ function UpdateSettings(props) { return null; } - const updateOptions = [ - { key: 'builtIn', value: 'Built-In' }, - { key: 'script', value: 'Script' } - ]; + const usingExternalUpdateMechanism = packageUpdateMechanism !== 'builtIn'; - if (packageUpdateMechanism !== 'builtIn') { + const updateOptions = []; + + if (usingExternalUpdateMechanism) { updateOptions.push({ key: packageUpdateMechanism, value: titleCase(packageUpdateMechanism) }); + } else { + updateOptions.push({ key: 'builtIn', value: 'Built-In' }); } + updateOptions.push({ key: 'script', value: 'Script' }); + return (