Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Merge pull request #4907 from darkdh/4903
Browse files Browse the repository at this point in the history
Do not use default setting when value is false
  • Loading branch information
bbondy authored Oct 18, 2016
2 parents ef93568 + 1092758 commit 44c28c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const resolveValue = (settingKey, settingsCollection) => {

module.exports.getSetting = (settingKey, settingsCollection) => {
const setting = resolveValue(settingKey, settingsCollection)
if (setting) return setting
if (typeof setting !== 'undefined') return setting
return getDefaultSetting(settingKey, settingsCollection)
}

Expand Down

0 comments on commit 44c28c9

Please sign in to comment.