diff --git a/app/src/components/ddi-summary/TypeFilter.tsx b/app/src/components/ddi-summary/TypeFilter.tsx index fcfe646..1e5ad68 100644 --- a/app/src/components/ddi-summary/TypeFilter.tsx +++ b/app/src/components/ddi-summary/TypeFilter.tsx @@ -4,6 +4,8 @@ import { useRef, useState } from "react"; import { useClickOutside } from "@hooks/click"; +import { getLabelFromId } from "@utils/badges"; + import { DDIObjectIDs } from "@model/ddi"; type TypeFilterProps = { @@ -56,7 +58,7 @@ const TypeFilter = ({ types, selectedTypes, onToggleType }: TypeFilterProps) => onChange={() => onToggleType(type)} /> } - label={type} + label={getLabelFromId(type)} /> ))}