We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0cf891b commit 1842ebeCopy full SHA for 1842ebe
1 file changed
frontend/components/Navbar/LightDarkToggle.tsx
@@ -24,8 +24,7 @@ export default function LightDarkToggle() {
24
setTheme("dark");
25
localStorage.setItem("theme", "dark");
26
}
27
- }
28
- if (theme) {
+ } else {
29
document.body.setAttribute("data-bs-theme", theme);
30
31
}, [theme]);
0 commit comments