Browse Source

remove futile condition

yohei0125 4 years ago
parent
commit
2179496eac
1 changed files with 1 additions and 1 deletions
  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;
   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>;
     commentCount = <span className={`${shouldSpaceOutIcon ? 'mr-3' : ''}`}><i className="icon-bubble" />{page.commentCount}</span>;
   }
   }