From c9531f8e3651a4cc2d682021f2a2fa170459c698 Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Sun, 3 Dec 2023 20:47:36 -0800
Subject: refactor(birthdays): move reactives

---
 src/lib/Tools/CharacterBirthdays.svelte | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

(limited to 'src/lib/Tools/CharacterBirthdays.svelte')

diff --git a/src/lib/Tools/CharacterBirthdays.svelte b/src/lib/Tools/CharacterBirthdays.svelte
index f910f7c4..160b6494 100644
--- a/src/lib/Tools/CharacterBirthdays.svelte
+++ b/src/lib/Tools/CharacterBirthdays.svelte
@@ -29,6 +29,9 @@
 		day = Math.min(day, new Date(0, month, 0).getDate());
 		day = Math.max(day, 1);
 
+		anisearchBirthdays = aniSearchBirthdays(month, day);
+		acdbBirthdays = ACDBBirthdays(month, day);
+
 		if (browser) {
 			$page.url.searchParams.set('month', month.toString());
 			$page.url.searchParams.set('day', day.toString());
@@ -36,11 +39,6 @@
 		}
 	}
 
-	$: {
-		anisearchBirthdays = aniSearchBirthdays(month, day);
-		acdbBirthdays = ACDBBirthdays(month, day);
-	}
-
 	function normalizeName(name: string): string {
 		return name.toLowerCase().split(' ').sort().join(' ');
 	}
-- 
cgit v1.2.3

