Skip to content

Commit

Permalink
[FIX] Added deleted variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Atuitjr committed Feb 27, 2024
1 parent af92cce commit 2929d31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ThemeToggle.astro
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { DARK_THEME, LIGHT_THEME } from "@/consts/themes"
element.classList.toggle(darkTheme)

const isDark = element.classList.contains(darkTheme)
localStorage.setItem("theme", isDark ? darkTheme : )
localStorage.setItem("theme", isDark ? darkTheme : lightTheme)

updateThemeMessage(isDark)
}
Expand Down

0 comments on commit 2929d31

Please sign in to comment.