diff --git a/src/components/ModForm.tsx b/src/components/ModForm.tsx index 7cd965b..9711ac4 100644 --- a/src/components/ModForm.tsx +++ b/src/components/ModForm.tsx @@ -1100,44 +1100,33 @@ export const CategoryAutocomplete = ({ {Row} ) : ( - - {({ index, style }) => ( -
- {inputValue && - !filteredOptions?.find( - (option) => - option.hierarchy.toLowerCase() === - inputValue.toLowerCase() - ) ? ( - <> - Add "{inputValue}" - - - ) : ( - <>No matches - )} -
+ {inputValue && + !filteredOptions?.find( + (option) => + option.hierarchy.toLowerCase() === inputValue.toLowerCase() + ) ? ( + <> + Add "{inputValue}" + + + ) : ( + <>No matches )} -
+ )} @@ -1147,18 +1136,25 @@ export const CategoryAutocomplete = ({ {LTags.map((hierarchy) => { const heirarchicalCategories = hierarchy.split(`:`) const categories = heirarchicalCategories - .map((c, i) => ( - -

{capitalizeEachWord(c)}

- - )) + .map((c, i) => + game ? ( + +

{capitalizeEachWord(c)}

+ + ) : ( +

+ {capitalizeEachWord(c)} +

+ ) + ) .reduce((prev, curr, i) => [ prev,
((c: string) => (