diff --git a/src/helpers/utils.js b/src/helpers/utils.js index b8ef90f..d0d2231 100644 --- a/src/helpers/utils.js +++ b/src/helpers/utils.js @@ -6,8 +6,8 @@ export const getThemeValue = () => { return config.themeConfig.default; } - if (localStorage.hasOwnProperty('theme')) { - let theme = localStorage.getItem('theme'); + if (localStorage.hasOwnProperty('ezprofileTheme')) { + let theme = localStorage.getItem('ezprofileTheme'); return theme; } diff --git a/src/store/slices/themeSlice.js b/src/store/slices/themeSlice.js index 47e56df..207d613 100644 --- a/src/store/slices/themeSlice.js +++ b/src/store/slices/themeSlice.js @@ -11,7 +11,7 @@ export const themeSlice = createSlice({ state = action.payload; document.documentElement.setAttribute('data-theme', state); - localStorage.setItem('theme', state); + localStorage.setItem('ezprofileTheme', state); return state; }