Skip to content

armgit / dashy

Public Imported from GitHub
0

πŸš€ A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

:rotating_light: Fixes bad object comparison

Alicia Sykes6702b9335f3a
diff --git a/src/utils/ConfigAccumalator.js b/src/utils/ConfigAccumalator.js
index 6ab294e3..dbfc5a14 100644
--- a/src/utils/ConfigAccumalator.js
+++ b/src/utils/ConfigAccumalator.js
@@ -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