From 02454d29aeb8f866287985c536dd819463d50107 Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Mon, 20 May 2024 15:03:39 -0700
Subject: fix(FallbackBadge): null check preferences

---
 src/lib/User/BadgeWall/FallbackBadge.svelte | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

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

diff --git a/src/lib/User/BadgeWall/FallbackBadge.svelte b/src/lib/User/BadgeWall/FallbackBadge.svelte
index 55412aa5..ffa2dc3d 100644
--- a/src/lib/User/BadgeWall/FallbackBadge.svelte
+++ b/src/lib/User/BadgeWall/FallbackBadge.svelte
@@ -74,7 +74,9 @@
 		}`}
 		pin={`badge-${awc ? index : badge.id}`}
 		pinPosition="top"
-		relative={preferences.badge_wall_css.includes('backdrop-filter')}
+		relative={preferences &&
+			preferences.badge_wall_css !== undefined &&
+			preferences.badge_wall_css.includes('backdrop-filter')}
 	>
 		<a
 			href={awc ? badgeToAny(badge).link : '#'}
-- 
cgit v1.2.3

