summaryrefslogtreecommitdiffstats
path: root/src/components/Comment/Comment.tsx
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-02-14 13:57:06 +0100
committerArmand Philippot <git@armandphilippot.com>2022-02-14 14:15:54 +0100
commit637350e4d152de1346857d645bda8443900ec6f4 (patch)
tree23b43c7ce7e25935efe5b1dd156ad186334ee956 /src/components/Comment/Comment.tsx
parent9c150f28e4a23dfb4965fc3a4cdee16933a3def5 (diff)
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.
Diffstat (limited to 'src/components/Comment/Comment.tsx')
-rw-r--r--src/components/Comment/Comment.tsx2
1 files changed, 1 insertions, 1 deletions
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}
/>