diff --git a/public/js/grocy_nightmode.js b/public/js/grocy_nightmode.js index 45c9e67c..d6957388 100644 --- a/public/js/grocy_nightmode.js +++ b/public/js/grocy_nightmode.js @@ -56,7 +56,7 @@ $("#auto-night-mode-time-range-to").trigger("keyup"); function CheckNightMode() { - if (!Grocy.UserSettings.auto_night_mode_enabled) + if (!BoolVal(Grocy.UserSettings.auto_night_mode_enabled)) { return; }