Skip to content

Commit 669be8d

Browse files
committed
Fix 0 check
1 parent d3cdde2 commit 669be8d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

frontend/src/pages/MissionPage/AnalysisResultView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export const AnalysisResultDialogContent = ({ inspection }: { inspection: Inspec
7373
<Typography variant="body_short">{inspection.value}</Typography>
7474
</StyledInfoContent>
7575
)}
76-
{inspection?.confidence && (
76+
{inspection?.confidence !== undefined && inspection?.confidence !== null && (
7777
<StyledInfoContent>
7878
<Typography variant="caption">{TranslateText('Confidence') + ':'}</Typography>
7979
<Typography variant="body_short">{Math.round(inspection.confidence) + '%'}</Typography>

0 commit comments

Comments
 (0)