aboutsummaryrefslogtreecommitdiff
path: root/src/utils/misc.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/misc.tsx')
-rw-r--r--src/utils/misc.tsx2
1 files changed, 1 insertions, 1 deletions
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(" ");
}
/**