code-review-fix task 10.4: fix confidence falsy check to use != null in SpanAnnotationList

This commit is contained in:
Marko Djordjevic 2026-02-18 20:29:25 +01:00
parent bd57bb13e4
commit e181445266

View file

@ -85,9 +85,9 @@ export default function SpanAnnotationList({
>
{displayName}
</span>
{(span.confidence || span.outcome) && (
{(span.confidence != null || span.outcome) && (
<div className="mt-0.5 text-[10px] text-muted-foreground flex gap-2">
{span.confidence && <span>C:{span.confidence}</span>}
{span.confidence != null && <span>C:{span.confidence}</span>}
{span.outcome && <span>{span.outcome}</span>}
</div>
)}