Skip to content

Commit e26de44

Browse files
committed
refactor: improve display of count
1 parent 4951410 commit e26de44

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/client/components/insights/MetricsBlock.tsx

+5-3
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,11 @@ export const MetricsBlock: React.FC<MetricsBlockProps> = React.memo((props) => {
8080
<>
8181
<LuMousePointerClick />
8282
<span>{item.name}</span>
83-
<span className="text-xs opacity-40">
84-
({formatNumber((item as any).count)})
85-
</span>
83+
{item.count && (
84+
<span className="text-xs opacity-40">
85+
({formatNumber(item.count)})
86+
</span>
87+
)}
8688
</>
8789
)}
8890
>

0 commit comments

Comments
 (0)