diff --git a/src/components/CardProperty.tsx b/src/components/CardProperty.tsx index e87c242..6ac5ba6 100644 --- a/src/components/CardProperty.tsx +++ b/src/components/CardProperty.tsx @@ -8,6 +8,7 @@ type CardPropertyProps = { }; export default function CardProperty({ data }: CardPropertyProps) { + const href = data?.propertyType === "sell" ? `/listings-for-rent/${data.slug}` : `/listings-for-sell/${data.slug}`; return (