From 4942562c3ad641b4538de080057e4898f5f98fee Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Wed, 13 Nov 2024 14:50:39 -0600 Subject: [PATCH] Increase strength of check for post stats guard --- src/view/com/post-thread/PostThreadItem.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/view/com/post-thread/PostThreadItem.tsx b/src/view/com/post-thread/PostThreadItem.tsx index e8fdc47f79..211a535f82 100644 --- a/src/view/com/post-thread/PostThreadItem.tsx +++ b/src/view/com/post-thread/PostThreadItem.tsx @@ -382,9 +382,9 @@ let PostThreadItemLoaded = ({ translatorUrl={translatorUrl} needsTranslation={needsTranslation} /> - {post.repostCount !== 0 || - post.likeCount !== 0 || - post.quoteCount !== 0 ? ( + {(typeof post.repostCount === 'number' && post.repostCount !== 0) || + (typeof post.likeCount === 'number' && post.likeCount !== 0) || + (typeof post.quoteCount === 'number' && post.quoteCount !== 0) ? ( // Show this section unless we're *sure* it has no engagement.