From c4e12b5b30e4fde131d497aae565b5d2c99a9188 Mon Sep 17 00:00:00 2001 From: Xyphyn Date: Mon, 31 Jul 2023 10:38:01 -0700 Subject: [PATCH] feat: add findClosestNumber for better cache --- src/lib/components/ui/Avatar.svelte | 5 ++++- src/lib/util.ts | 4 ++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 src/lib/util.ts diff --git a/src/lib/components/ui/Avatar.svelte b/src/lib/components/ui/Avatar.svelte index f4832018..42faf172 100644 --- a/src/lib/components/ui/Avatar.svelte +++ b/src/lib/components/ui/Avatar.svelte @@ -1,7 +1,10 @@