Explorar el Código

remove futile condition

yohei0125 hace 4 años
padre
commit
2179496eac
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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>;
   }