diff --git a/src/components/Comment.tsx b/src/components/Comment.tsx index 93e790a66..578398828 100644 --- a/src/components/Comment.tsx +++ b/src/components/Comment.tsx @@ -6,25 +6,27 @@ type Props = { }; export const CommentObj: React.FC = ({ comment, onDelete }) => { + const { id, email, name, body } = { ...comment }; + return ( -
+ );