🚨 Fixes bad object comparison

This commit is contained in:
Alicia Sykes 2022-03-26 19:32:41 +00:00
parent f250890f3b
commit 6702b9335f
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ export default class ConfigAccumulator {
let usersAppConfig = defaultAppConfig;
if (localStorage[localStorageKeys.APP_CONFIG]) {
usersAppConfig = JSON.parse(localStorage[localStorageKeys.APP_CONFIG]);
} else if (appConfigFile !== {}) {
} else if (Object.keys(appConfigFile).length > 0) {
usersAppConfig = appConfigFile;
}
// Some settings have their own local storage keys, apply them here