code-review-fix task 10.4: fix confidence falsy check to use != null in SpanAnnotationList
This commit is contained in:
parent
bd57bb13e4
commit
e181445266
1 changed files with 2 additions and 2 deletions
|
|
@ -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>
|
||||
)}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue