We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0aefe35 + 2da8167 commit 1c6fee2Copy full SHA for 1c6fee2
1 file changed
src/utils/index.tsx
@@ -141,7 +141,7 @@ export const getInitialTheme = (themeConfig: SanitizedThemeConfig): string => {
141
142
if (
143
typeof window !== 'undefined' &&
144
- !(localStorage.getItem(LOCAL_STORAGE_KEY_NAME) === null)
+ localStorage.getItem(LOCAL_STORAGE_KEY_NAME) !== null
145
) {
146
const savedTheme = localStorage.getItem(LOCAL_STORAGE_KEY_NAME);
147
0 commit comments