From 128ee41252b1bf9c3e415ec94ce26d5dc3e7c7ee Mon Sep 17 00:00:00 2001 From: Vendicated Date: Sat, 25 Feb 2023 19:10:01 +0100 Subject: ErrorBoundary: Do not use any Discord components to be more robust --- src/utils/misc.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/utils') diff --git a/src/utils/misc.tsx b/src/utils/misc.tsx index a41ab67..b64dff9 100644 --- a/src/utils/misc.tsx +++ b/src/utils/misc.tsx @@ -141,8 +141,8 @@ export function humanFriendlyJoin(elements: any[], mapper: (e: any) => string = * Calls .join(" ") on the arguments * classes("one", "two") => "one two" */ -export function classes(...classes: string[]) { - return classes.filter(c => typeof c === "string").join(" "); +export function classes(...classes: Array) { + return classes.filter(Boolean).join(" "); } /** -- cgit