From 3a2358ab14faefc81b439a838b94de5a63eb8d09 Mon Sep 17 00:00:00 2001 From: wlren Date: Mon, 10 Oct 2022 16:47:48 +0800 Subject: [PATCH] [questions][bug] fix comments and answers bug not updating --- .../src/pages/questions/[questionId]/[questionSlug]/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/portal/src/pages/questions/[questionId]/[questionSlug]/index.tsx b/apps/portal/src/pages/questions/[questionId]/[questionSlug]/index.tsx index 29233351..77d6c1a1 100644 --- a/apps/portal/src/pages/questions/[questionId]/[questionSlug]/index.tsx +++ b/apps/portal/src/pages/questions/[questionId]/[questionSlug]/index.tsx @@ -126,7 +126,7 @@ export default function QuestionPage() { upvoteCount={question.numVotes} />
- +
@@ -201,7 +201,7 @@ export default function QuestionPage() { />
-

{question.numAnswers} answers

+

{(answers ?? []).length} answers

Sort by: