From 2929d31fe7f7314445dc1773f671a1ce4188b7bf Mon Sep 17 00:00:00 2001 From: Alberto Tuit Date: Tue, 27 Feb 2024 20:07:57 +0100 Subject: [PATCH] [FIX] Added deleted variable --- src/components/ThemeToggle.astro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/ThemeToggle.astro b/src/components/ThemeToggle.astro index 5e35fba29..c8693c774 100644 --- a/src/components/ThemeToggle.astro +++ b/src/components/ThemeToggle.astro @@ -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) }