From b2ee93c46aa850473be144f85f52ac3e9c5535d3 Mon Sep 17 00:00:00 2001
From: Furkan Sahin <furkan-dev@proton.me>
Date: Fri, 22 Jul 2022 15:28:07 -0400
Subject: Fix checkbox wanting `boolean` despite it working fine with `string`

---
 src/components/DarkModeSwitch.svelte | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'src/components/DarkModeSwitch.svelte')

diff --git a/src/components/DarkModeSwitch.svelte b/src/components/DarkModeSwitch.svelte
index 709b717..0f2421d 100644
--- a/src/components/DarkModeSwitch.svelte
+++ b/src/components/DarkModeSwitch.svelte
@@ -1,4 +1,4 @@
-<script>
+<script lang="ts">
     function selectDaisyTheme(new_theme) {
         document.querySelector(":root").setAttribute("data-theme", new_theme);
     }
@@ -15,8 +15,8 @@
     }
 
     function isDarkMode() {
-        if (localStorage.theme == "dark") return "";
-        return "checked"
+        if (localStorage.theme == "dark") return false;
+        return true;
     }
 </script>
 
-- 
cgit v1.2.3

