Mudana-Grune 2 лет назад
Родитель
Сommit
98dfb8df4f
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      apps/app/src/components/PageComment.tsx

+ 1 - 1
apps/app/src/components/PageComment.tsx

@@ -90,7 +90,7 @@ export const PageComment: FC<PageCommentProps> = memo((props: PageCommentProps):
     }
     }
   }, [mutate, onCancelDeleteComment, onCommentCountUpdated]);
   }, [mutate, onCancelDeleteComment, onCommentCountUpdated]);
 
 
-  const onDeleteComment = useCallback(async () => {
+  const onDeleteComment = useCallback(async() => {
     if (commentToBeDeleted == null) return;
     if (commentToBeDeleted == null) return;
     try {
     try {
       await apiPost('/comments.remove', { comment_id: commentToBeDeleted._id });
       await apiPost('/comments.remove', { comment_id: commentToBeDeleted._id });