diff --git a/src/utils/index.tsx b/src/utils/index.tsx index 775b285..4fd19c0 100644 --- a/src/utils/index.tsx +++ b/src/utils/index.tsx @@ -141,7 +141,7 @@ export const getInitialTheme = (themeConfig: SanitizedThemeConfig): string => { if ( typeof window !== 'undefined' && - !(localStorage.getItem(LOCAL_STORAGE_KEY_NAME) === null) + localStorage.getItem(LOCAL_STORAGE_KEY_NAME) !== null ) { const savedTheme = localStorage.getItem(LOCAL_STORAGE_KEY_NAME);