fix: toFixed crash bei botResponse ohne processingTime/priceCHF (greeting, commands)

Made-with: Cursor
This commit is contained in:
ValueOn AG 2026-03-07 01:22:22 +01:00
parent 31bf734def
commit 3aef70ab5f

View file

@ -364,11 +364,13 @@ export const TeamsbotSessionView: React.FC = () => {
<em>Reasoning: {r.reasoning}</em> <em>Reasoning: {r.reasoning}</em>
</div> </div>
)} )}
<div className={styles.responseMeta}> {(r.modelName || r.processingTime != null) && (
<span>{r.modelName}</span> <div className={styles.responseMeta}>
<span>{r.processingTime.toFixed(1)}s</span> <span>{r.modelName || ''}</span>
<span>{r.priceCHF.toFixed(4)} CHF</span> {r.processingTime != null && <span>{r.processingTime.toFixed(1)}s</span>}
</div> {r.priceCHF != null && <span>{r.priceCHF.toFixed(4)} CHF</span>}
</div>
)}
</div> </div>
))} ))}
{botResponses.length === 0 && ( {botResponses.length === 0 && (