Skip to content

Commit 4c07eb9

Browse files
committed
fix(trace-spans): simplify formatCostSummary to show total credits only
1 parent e8f7139 commit 4c07eb9

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

  • apps/sim/app/workspace/[workspaceId]/logs/components/log-details/components/trace-spans

apps/sim/app/workspace/[workspaceId]/logs/components/log-details/components/trace-spans/trace-spans.tsx

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,7 @@ function useSetToggle() {
6161

6262
function formatCostSummary(cost: TraceSpan['cost']): string | undefined {
6363
if (!cost) return undefined
64-
const parts: string[] = []
65-
const total = formatCostAmount(cost.total)
66-
const input = formatCostAmount(cost.input)
67-
const output = formatCostAmount(cost.output)
68-
if (total) parts.push(total)
69-
if (input) parts.push(`${input} in`)
70-
if (output) parts.push(`${output} out`)
71-
return parts.length > 0 ? parts.join(' · ') : undefined
64+
return formatCostAmount(cost.total)
7265
}
7366

7467
/**

0 commit comments

Comments
 (0)