From 6fbbb73e0564e1118c4041e9869e9092057dda42 Mon Sep 17 00:00:00 2001 From: RizqiSyahrendra Date: Wed, 23 Apr 2025 11:59:00 +0700 Subject: [PATCH] fix: card property href --- src/components/CardProperty.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 (
@@ -36,7 +37,7 @@ export default function CardProperty({ data }: CardPropertyProps) {

- {data.title} + {data.title}