From 300430e2d5a4a1c35ab230315eb0a7e099ba2093 Mon Sep 17 00:00:00 2001 From: ManishMadan2882 Date: Tue, 6 Feb 2024 05:17:43 +0530 Subject: [PATCH] fixes weird bug- dark theme hook --- frontend/src/hooks/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/hooks/index.ts b/frontend/src/hooks/index.ts index a2bf3f3f..23fec6e8 100644 --- a/frontend/src/hooks/index.ts +++ b/frontend/src/hooks/index.ts @@ -92,7 +92,7 @@ export function useDarkTheme() { else{ document.documentElement.classList.remove('dark'); } - }) + },[isDarkTheme]) // Function to toggle dark mode const toggleTheme:any = () => {