diff --git a/src/pages/UnitPage.tsx b/src/pages/UnitPage.tsx index 048a868..112efbf 100644 --- a/src/pages/UnitPage.tsx +++ b/src/pages/UnitPage.tsx @@ -9,7 +9,6 @@ import FilledHeartIcon from "../components/icons/FilledHeartIcon"; import { useFavoritesUnitsStore } from "../stores/useFavoritesUnitsStore"; import HeartIcon from "../components/icons/HeartIcon"; import slugToComplexName from "../utils/slugToComplexName"; -import getUnitTypeSlug from "../utils/getUnitTypeSlug"; import { formattedUnitTypes } from "../data/formattedUnitTypes"; import { projects } from "../data/projects"; import VideoModal from "../components/VideoModal"; @@ -257,20 +256,14 @@ function UnitPage() {
{projects .find((project) => project.slug === params.complexName) - ?.types.find( - (type) => - type.slug === - getUnitTypeSlug(params.complexName!, unit.unitType) - )?.tourAvailable && ( + ?.types.find((type) => type.slug === unit.unitTypeVariantSlug) + ?.tourAvailable && (