소스 검색

remove futile condition

yohei0125 4 년 전
부모
커밋
2179496eac
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      packages/ui/src/components/PagePath/PageListMeta.tsx

+ 1 - 1
packages/ui/src/components/PagePath/PageListMeta.tsx

@@ -30,7 +30,7 @@ export const PageListMeta: FC<PageListMetaProps> = (props: PageListMetaProps) =>
   }
 
   let commentCount;
-  if (page.commentCount != null && page.commentCount > 0) {
+  if (page.commentCount > 0) {
     commentCount = <span className={`${shouldSpaceOutIcon ? 'mr-3' : ''}`}><i className="icon-bubble" />{page.commentCount}</span>;
   }