fix: not showing '0' when no followers on the search results card (#1032)

This commit is contained in:
Ethan Wong
2024-10-21 08:32:15 +08:00
committed by GitHub
parent 133a067840
commit a09b80e933
+1 -1
View File
@@ -342,7 +342,7 @@ const SearchCard: FC<{
</Button>
<div className="ml-6 text-zinc-500">
<span className="font-medium text-zinc-800 dark:text-zinc-200">
{item.subscriptionCount}
{item.subscriptionCount ?? 0}
</span>{" "}
Followers
</div>