Skip to content

Commit

Permalink
fix: remove viewCount for non shorts
Browse files Browse the repository at this point in the history
  • Loading branch information
DIYgod committed Sep 14, 2023
1 parent b541656 commit 4524bdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/common/PostCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ const Card = ({
<span className="text-zinc-400 hidden sm:inline-block">·</span>
</>
)}
{!!post.stat?.viewCount && (
{isShort && !!post.stat?.viewCount && (
<span className="xlog-post-meta text-zinc-400 flex items-center text-[13px] truncate space-x-2">
<span className="xlog-post-views inline-flex items-center">
<i className="icon-[mingcute--eye-line] mr-[2px] text-base" />
Expand Down

0 comments on commit 4524bdc

Please sign in to comment.