From 16aa14fcbb8f418fe1cdbe0587beb37b181a47c2 Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Sat, 26 Mar 2022 20:40:59 +0000 Subject: [PATCH] :necktie: Changes order item size is applied (#576) --- src/utils/ConfigAccumalator.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/utils/ConfigAccumalator.js b/src/utils/ConfigAccumalator.js index dbfc5a14..aa4e151b 100644 --- a/src/utils/ConfigAccumalator.js +++ b/src/utils/ConfigAccumalator.js @@ -34,10 +34,12 @@ export default class ConfigAccumulator { usersAppConfig = appConfigFile; } // Some settings have their own local storage keys, apply them here - usersAppConfig.layout = localStorage[localStorageKeys.LAYOUT_ORIENTATION] - || appConfigFile.layout || defaultLayout; - usersAppConfig.iconSize = localStorage[localStorageKeys.ICON_SIZE] - || appConfigFile.iconSize || defaultIconSize; + usersAppConfig.layout = appConfigFile.layout + || localStorage[localStorageKeys.LAYOUT_ORIENTATION] + || defaultLayout; + usersAppConfig.iconSize = appConfigFile.iconSize + || localStorage[localStorageKeys.ICON_SIZE] + || defaultIconSize; // Don't let users modify users locally if (appConfigFile.auth) usersAppConfig.auth = appConfigFile.auth; // All done, return final appConfig object