diff --git a/packages/components/src/CommentItem/CommentItem.tsx b/packages/components/src/CommentItem/CommentItem.tsx index cc77aa7c6d..609af76d76 100644 --- a/packages/components/src/CommentItem/CommentItem.tsx +++ b/packages/components/src/CommentItem/CommentItem.tsx @@ -180,7 +180,10 @@ export const CommentItem = (props: CommentItemProps) => { message="Are you sure you want to delete this comment?" confirmButtonText="Delete" handleCancel={() => setShowDeleteModal(false)} - handleConfirm={() => handleDelete && handleDelete(_id)} + handleConfirm={() => { + handleDelete && handleDelete(_id) + setShowDeleteModal(false) + }} /> diff --git a/packages/components/src/ConfirmModal/ConfirmModal.tsx b/packages/components/src/ConfirmModal/ConfirmModal.tsx index d9af0633e4..f0fa973fde 100644 --- a/packages/components/src/ConfirmModal/ConfirmModal.tsx +++ b/packages/components/src/ConfirmModal/ConfirmModal.tsx @@ -25,6 +25,7 @@ export const ConfirmModal = (props: Props) => {