bug: only show tool tokens if > 0 (#985)

This commit is contained in:
Abhi
2025-06-12 15:31:17 -04:00
committed by GitHub
parent 6bb3f27f6c
commit 32da693b91
4 changed files with 17 additions and 6 deletions
+6 -4
View File
@@ -66,10 +66,12 @@ export const StatsColumn: React.FC<{
label="Output Tokens"
value={stats.outputTokens.toLocaleString()}
/>
<StatRow
label="Tool Use Tokens"
value={stats.toolUseTokens.toLocaleString()}
/>
{stats.toolUseTokens > 0 && (
<StatRow
label="Tool Use Tokens"
value={stats.toolUseTokens.toLocaleString()}
/>
)}
<StatRow
label="Thoughts Tokens"
value={stats.thoughtsTokens.toLocaleString()}