diff --git a/src/utils/is-community.ts b/src/utils/is-community.ts index 90496496f..9dc143909 100644 --- a/src/utils/is-community.ts +++ b/src/utils/is-community.ts @@ -1,3 +1,3 @@ -export function isCommunity(s: string) { - return s.match(/^hive-\d+/) !== null; +export function isCommunity(s: any) { + return typeof s === "string" ? s.match(/^hive-\d+/) !== null : false; }