From f7ff24c1c81a6de8853a63a04bbc6ace264ba9a9 Mon Sep 17 00:00:00 2001 From: pemawangchuk2023 Date: Tue, 20 Aug 2024 23:50:32 +0600 Subject: [PATCH] Fix profile link to use author.clerkId instead of author._id at home page under questioncard --- components/cards/QuestionCard.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/cards/QuestionCard.tsx b/components/cards/QuestionCard.tsx index 3dabdec..cf421a7 100644 --- a/components/cards/QuestionCard.tsx +++ b/components/cards/QuestionCard.tsx @@ -72,7 +72,7 @@ const QuestionCard = ({ alt="user" value={author.name} title={` - asked ${getTimestamp(createdAt)}`} - href={`/profile/${author._id}`} + href={`/profile/${author.clerkId}`} isAuthor textStyles="body-medium text-dark400_light700" />