From 2da8167bd84454ba86a7049c2251da3fda1c2704 Mon Sep 17 00:00:00 2001 From: Chy-Zaber-Bin-Zahid Date: Tue, 6 Jan 2026 11:08:33 +0600 Subject: [PATCH] Simplify localStorage null check for better readability --- src/utils/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);