From 374531d10e8c12803036867de84edeca10fe2e25 Mon Sep 17 00:00:00 2001
From: A user <pedro.santos.cartaxo@gmail.com>
Date: Mon, 2 Jan 2023 22:30:54 -0300
Subject: Extract inline styles to css (#370)

---
 src/utils/misc.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/utils/misc.tsx')

diff --git a/src/utils/misc.tsx b/src/utils/misc.tsx
index 6710523..0ef7ffb 100644
--- a/src/utils/misc.tsx
+++ b/src/utils/misc.tsx
@@ -142,7 +142,7 @@ export function humanFriendlyJoin(elements: any[], mapper: (e: any) => string =
  * classes("one", "two") => "one two"
  */
 export function classes(...classes: string[]) {
-    return classes.join(" ");
+    return classes.filter(c => typeof c === "string").join(" ");
 }
 
 /**
-- 
cgit 

