diff --git a/src/components/modals/config/AnalyzeTab.tsx b/src/components/modals/config/AnalyzeTab.tsx index 905ecac..9aa4b9d 100644 --- a/src/components/modals/config/AnalyzeTab.tsx +++ b/src/components/modals/config/AnalyzeTab.tsx @@ -193,7 +193,7 @@ const AnalyzeTab: React.FC = () => { addRankingAsCategory(comparison.list2Code, rankingTitle, true)} + onClick={() => addRankingAsCategory(comparison.list2Code, rankingTitle)} icon={undefined} title="Add as Category" /> @@ -227,7 +227,7 @@ const AnalyzeTab: React.FC = () => { addRankingAsCategory(comparison.list2Code, rankingTitle, true)} + onClick={() => addRankingAsCategory(comparison.list2Code, rankingTitle)} icon={undefined} title="Add as Category" /> diff --git a/src/components/ranking/RankedItemsHeader.tsx b/src/components/ranking/RankedItemsHeader.tsx index 29ae78d..cc228f3 100644 --- a/src/components/ranking/RankedItemsHeader.tsx +++ b/src/components/ranking/RankedItemsHeader.tsx @@ -103,9 +103,10 @@ const RankedItemsHeader: React.FC = ({ /> )} + {(!showUnranked && categories.length > 0) && ( -
- } onPointerEnterCapture={undefined} onPointerLeaveCapture={undefined}> +
+ }> {categories.map((category, index) => ( - } onPointerEnterCapture={undefined} onPointerLeaveCapture={undefined}> + }>