Fixing errors with userTypes

This commit is contained in:
AshAnand34
2025-07-18 15:03:26 -07:00
parent 9e41071c01
commit d5c71b479e
13 changed files with 32 additions and 24 deletions

View File

@@ -114,7 +114,7 @@ export const getToolCategoryTitle = (
categoryName: string,
t: TFunction<I18nNamespaces[]>
): string =>
getToolsByCategory(t).find((category) => category.type === categoryName)!
getToolsByCategory([], t).find((category) => category.type === categoryName)!
.rawTitle;
// Type guard to check if a value is a valid I18nNamespaces