diff --git a/frontend/js/dashboard-setting.js b/frontend/js/dashboard-setting.js index 4f15969..0c28807 100644 --- a/frontend/js/dashboard-setting.js +++ b/frontend/js/dashboard-setting.js @@ -9,11 +9,7 @@ var settings = data.settings; for (var i = 0; i < settings.length; i++) { - if (settings[i].id === id) { - settings[i].selected = true; - } else { - settings[i].selected = false; - } + settings[i].selected = settings[i].id === id; } }