fix: lỗi hiển thị ở frontend

This commit is contained in:
2026-06-21 21:53:14 +07:00
parent 403c169ddd
commit b1a539235b
40 changed files with 5094 additions and 668 deletions
+3 -2
View File
@@ -9,7 +9,7 @@ interface Comment {
userName: string;
content: string;
createdAt: string;
userId: string;
userId?: string;
}
interface CommentModalProps {
@@ -81,7 +81,8 @@ export const CommentModal: React.FC<CommentModalProps> = ({ isOpen, onClose, loc
id: newCommentData.id,
userName: newCommentData.user?.name || 'Ẩn danh',
content: newCommentData.content,
createdAt: newCommentData.createdAt
createdAt: newCommentData.createdAt,
userId: newCommentData.userId || newCommentData.user?.id
}];
});
}