From fd741ded5d2322d2a30fdc2f7dc21ba80fcfdde3 Mon Sep 17 00:00:00 2001 From: Beef Date: Sat, 15 Apr 2023 20:04:40 +0100 Subject: [PATCH] [Themes > Background] Prevent bad blur property values --- src/lib/themes.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/themes.ts b/src/lib/themes.ts index daa679d..1776ccb 100644 --- a/src/lib/themes.ts +++ b/src/lib/themes.ts @@ -29,7 +29,7 @@ export function patchChatBackground() { return after("default", MessagesWrapperConnected, (_, ret) => React.createElement(RN.ImageBackground, { style: { flex: 1, height: "100%" }, source: { uri: currentBackground.url }, - blurRadius: currentBackground.blur, + blurRadius: typeof currentBackground.blur === "number" ? currentBackground.blur : 0, children: ret, })); }