From 3ed82624957f0ae95b796922a1d010961a80bd01 Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Sat, 13 Nov 2021 15:05:35 +0000 Subject: [PATCH] :bug: Fixes hide settings in conf (#329) --- src/components/Settings/SettingsContainer.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/Settings/SettingsContainer.vue b/src/components/Settings/SettingsContainer.vue index dd3834f1..e81f17b9 100644 --- a/src/components/Settings/SettingsContainer.vue +++ b/src/components/Settings/SettingsContainer.vue @@ -122,8 +122,9 @@ export default { getSettingsVisibility() { const screenWidth = document.body.clientWidth; if (screenWidth && screenWidth < 600) return false; - return JSON.parse(localStorage[localStorageKeys.HIDE_SETTINGS] - || (this.visibleComponents || defaultVisibleComponents).settings); + if ((this.visibleComponents || {}).settings === false) return false; + if (localStorage[localStorageKeys.HIDE_SETTINGS] === 'false') return false; + return defaultVisibleComponents.settings; }, }, };