aboutsummaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-12-03 20:49:03 -0800
committerFuwn <[email protected]>2023-12-03 20:49:07 -0800
commitb6390598339b6e194188e5cfa6a44587f6dd5686 (patch)
tree45628e77efc29c4ea5285bfb2f1cd1aa0c3c98be /src/lib
parentrefactor(birthdays): move reactives (diff)
downloaddue.moe-b6390598339b6e194188e5cfa6a44587f6dd5686.tar.xz
due.moe-b6390598339b6e194188e5cfa6a44587f6dd5686.zip
style(birthdays): sugar
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/Tools/CharacterBirthdays.svelte10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/lib/Tools/CharacterBirthdays.svelte b/src/lib/Tools/CharacterBirthdays.svelte
index 160b6494..f3112fa6 100644
--- a/src/lib/Tools/CharacterBirthdays.svelte
+++ b/src/lib/Tools/CharacterBirthdays.svelte
@@ -39,14 +39,12 @@
}
}
- function normalizeName(name: string): string {
- return name.toLowerCase().split(' ').sort().join(' ');
- }
+ const normalizeName = (name: string): string => name.toLowerCase().split(' ').sort().join(' ');
- function combineBirthdaySources(
+ const combineBirthdaySources = (
acdb: ACDBBirthday[],
aniSearch: aniSearchBirthday[]
- ): Birthday[] {
+ ): Birthday[] => {
const nameMap = new Map<string, Birthday>();
for (const entry of aniSearch.map((entry) => ({
@@ -71,7 +69,7 @@
}
return Array.from(nameMap.values());
- }
+ };
</script>
{#await acdbBirthdays}