diff --git a/core/user_config.js b/core/user_config.js index 70e1f068..f60d2155 100644 --- a/core/user_config.js +++ b/core/user_config.js @@ -174,9 +174,9 @@ exports.getModule = class UserConfigModule extends MenuModule { }; }), 'name'); - currentThemeIdIndex = _.findIndex(self.availThemeInfo, function cmp(ti) { + currentThemeIdIndex = Math.max(0, _.findIndex(self.availThemeInfo, function cmp(ti) { return ti.themeId === self.client.user.properties.theme_id; - }); + })); callback(null); },