Fix $0.0000 display for near-zero costs

Closes #205
This commit is contained in:
iamtoruk 2026-05-03 12:11:10 -07:00
parent 6702d55345
commit 988398abfc

View file

@ -151,5 +151,6 @@ export function formatCost(costUSD: number): string {
if (cost >= 1) return `${symbol}${cost.toFixed(2)}`
if (cost >= 0.01) return `${symbol}${cost.toFixed(3)}`
return `${symbol}${cost.toFixed(4)}`
if (cost >= 0.0001) return `${symbol}${cost.toFixed(4)}`
return `${symbol}${cost.toFixed(2)}`
}