= ({
{formatCost(costBreakdown.tool_usage_cost)}
)}
- {/* Additional Costs (free-form) */}
- {costBreakdown?.additional_costs && Object.keys(costBreakdown.additional_costs).length > 0 && (
- <>
- {Object.entries(costBreakdown.additional_costs).map(([key, value]) => (
+ {costBreakdown?.additional_costs &&
+ Object.entries(costBreakdown.additional_costs)
+ .filter(([, value]) => value != null && value !== 0)
+ .map(([key, value]) => (
{key}:
{formatCost(value)}
))}
- >
- )}
{/* Subtotal / Original Cost - hide when cached since it would be $0 */}