From dfd91282bd76a3070049f2a1af3cd2089fd8f69c Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Thu, 14 Dec 2023 16:55:40 -0800
Subject: fix(tools): better clear parameters

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

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

diff --git a/src/lib/Tools/CharacterBirthdays.svelte b/src/lib/Tools/CharacterBirthdays.svelte
index 936db0c3..3a8abaed 100644
--- a/src/lib/Tools/CharacterBirthdays.svelte
+++ b/src/lib/Tools/CharacterBirthdays.svelte
@@ -4,6 +4,7 @@
 	import { ACDBBirthdays, type ACDBBirthday } from '$lib/Birthday/ACDB';
 	import { aniSearchBirthdays, type aniSearchBirthday } from '$lib/Birthday/aniSearch';
 	import Error from '$lib/Error.svelte';
+	import { onMount } from 'svelte';
 	import { clearAllParameters, parseOrDefault } from './tool';
 
 	interface Birthday {
@@ -36,6 +37,8 @@
 		}
 	}
 
+	onMount(() => clearAllParameters(['month', 'day']));
+
 	const normalizeName = (name: string): string => name.toLowerCase().split(' ').sort().join(' ');
 
 	const combineBirthdaySources = (
-- 
cgit v1.2.3

