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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

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>