From 5f7f738c6775f75d920a3b0289227bf018e0689f Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Mon, 15 Apr 2024 21:31:11 -0700
Subject: fix(badges): empty fields

---
 src/lib/FallbackBadge.svelte | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

(limited to 'src/lib/FallbackBadge.svelte')

diff --git a/src/lib/FallbackBadge.svelte b/src/lib/FallbackBadge.svelte
index 3f87b9f2..3a5e39e3 100644
--- a/src/lib/FallbackBadge.svelte
+++ b/src/lib/FallbackBadge.svelte
@@ -4,9 +4,9 @@
 	import tooltip from './Tooltip/tooltip';
 	import { databaseTimeToDate } from './Utility/time';
 
-	export let source: string | undefined;
-	export let alternative: string | undefined;
-	export let fallback: string | undefined;
+	export let source: string | null | undefined;
+	export let alternative: string | null | undefined;
+	export let fallback: string | null | undefined;
 	export let maxReplaceCount = 1;
 	export let replaceDelay = 1000;
 	export let error = 'https://i2.kym-cdn.com/photos/images/newsfeed/000/290/992/0aa.jpg';
@@ -19,7 +19,7 @@
 	let mouseX = 0;
 	let mouseY = 0;
 
-	const delayedReplace = (event: Event, image: string | undefined) => {
+	const delayedReplace = (event: Event, image: string | undefined | null) => {
 		if (replaceCount >= maxReplaceCount) return;
 
 		setTimeout(() => {
-- 
cgit v1.2.3

