Skip to content

Commit

Permalink
Merge pull request konfuzio-ai#330 from konfuzio-ai/category-confidence
Browse files Browse the repository at this point in the history
Small change for consistency when category confidence is 0
  • Loading branch information
vebarina authored Sep 29, 2023
2 parents b43ff1d + e348c18 commit 9a5f77e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/DocumentCategory.vue
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ export default {
},
handleCategoryConfidence(confidence) {
if(!confidence) {
if(confidence === 0) return 0;
if(confidence === 0) return confidence.toFixed(2);
return;
}
Expand Down

0 comments on commit 9a5f77e

Please sign in to comment.