From 637350e4d152de1346857d645bda8443900ec6f4 Mon Sep 17 00:00:00 2001
From: Armand Philippot <git@armandphilippot.com>
Date: Mon, 14 Feb 2022 13:57:06 +0100
Subject: fix: update comments list when a new comment is send

The comments list was static before. If an user posted a comment, even
after it was approved, the comments list was keeping the old state.
---
 src/components/Comment/Comment.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/components/Comment/Comment.tsx')

diff --git a/src/components/Comment/Comment.tsx b/src/components/Comment/Comment.tsx
index 4835f8c..ab1dffc 100644
--- a/src/components/Comment/Comment.tsx
+++ b/src/components/Comment/Comment.tsx
@@ -121,7 +121,7 @@ const Comment = ({
               return (
                 <Comment
                   articleId={articleId}
-                  key={reply.id}
+                  key={reply.commentId}
                   comment={reply}
                   isNested={true}
                 />
-- 
cgit v1.2.3

