diff options
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/misc.tsx | 2 |
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(" "); } /** |