From f600670e6008fb67516269b4ca24269a4a822be1 Mon Sep 17 00:00:00 2001 From: Moritz Utcke Date: Wed, 20 Nov 2024 12:24:04 +1100 Subject: [PATCH] Cookie Fehler --- src/layouts/MinimalLayout.astro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layouts/MinimalLayout.astro b/src/layouts/MinimalLayout.astro index bbe9a90a..1eed7bb4 100644 --- a/src/layouts/MinimalLayout.astro +++ b/src/layouts/MinimalLayout.astro @@ -38,7 +38,7 @@ const schema = JSON.stringify({ }, }); -const lightTheme = Astro.cookies.get("theme").value === "light"; +const lightTheme = Astro.cookies.get("theme")?.value === "light"; ---