diff --git a/apps/web/src/app/main/path/components/TermInfo.tsx b/apps/web/src/app/main/path/components/TermInfo.tsx index b26f721..21fed6d 100755 --- a/apps/web/src/app/main/path/components/TermInfo.tsx +++ b/apps/web/src/app/main/path/components/TermInfo.tsx @@ -6,24 +6,30 @@ const TermInfo = ({ terms = [] }: { terms?: TermDto[] }) => {
{terms && terms?.length > 0 ? (
- {terms?.map((term: any) => { - return ( - + String(a?.taxonomy?.id || "").localeCompare( + String(b?.taxonomy?.id || "") + ) + ) + ?.map((term: any) => { + return ( + - {term.name} - - ); - })} + ? "green" + : term?.taxonomy?.slug === + TaxonomySlug.LEVEL + ? "blue" + : "orange" + } + className="px-3 py-1 rounded-full border-0"> + {term.name} + + ); + })}
) : (