From 5b1172662662df1bc8a05dadda14ac9fd827c347 Mon Sep 17 00:00:00 2001
From: Armand Philippot <git@armandphilippot.com>
Date: Mon, 7 Mar 2022 11:46:11 +0100
Subject: fix(meta): display full meta if posts count equal zero

When posts count equal zero (search page for example), only O was
printed instead of "Total: No articles".
---
 src/components/PostMeta/PostMeta.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/components/PostMeta/PostMeta.tsx')

diff --git a/src/components/PostMeta/PostMeta.tsx b/src/components/PostMeta/PostMeta.tsx
index e89e0e2..7fba0be 100644
--- a/src/components/PostMeta/PostMeta.tsx
+++ b/src/components/PostMeta/PostMeta.tsx
@@ -49,7 +49,7 @@ const PostMeta = ({
       {readingTime !== undefined && wordsCount !== undefined && (
         <ReadingTime time={readingTime} words={wordsCount} kind={kind} />
       )}
-      {results && <PostsCount total={results} kind={kind} />}
+      {results !== undefined && <PostsCount total={results} kind={kind} />}
       {!isThematic() && thematics && thematics.length > 0 && (
         <Thematics list={thematics} kind={kind} />
       )}
-- 
cgit v1.2.3

