summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-03-07 11:46:11 +0100
committerArmand Philippot <git@armandphilippot.com>2022-03-07 11:46:11 +0100
commit5b1172662662df1bc8a05dadda14ac9fd827c347 (patch)
treeb11675b069ff7810acd5c6f2dc4bcfcb23e49c5c
parentc0a15ffdb798b7c9567827095cf1154614ca6fc4 (diff)
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".
-rw-r--r--src/components/PostMeta/PostMeta.tsx2
1 files changed, 1 insertions, 1 deletions
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} />
)}