Skip to content

Commit 74c3821

Browse files
committed
OpenConceptLab/ocl_issues#2307 | updated score component for custom algo
1 parent 88ff031 commit 74c3821

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/map-projects/Score.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import ConceptIcon from '../concepts/ConceptIcon'
1717

1818
const Score = ({concept, setShowHighlights, sx, isAIRecommended, candidatesScore, algoScoreFirst, size}) => {
1919
const { t } = useTranslation();
20-
let percentile = concept?.search_meta?.search_normalized_score
20+
let percentile = concept?.search_meta?.search_normalized_score || ((concept?.search_meta?.search_rerank_score || concept?.search_meta?.search_score) * 100)
2121
if(percentile && !isNumber(percentile))
2222
percentile = parseFloat(percentile)
2323
const score = concept?.search_meta?.search_score

0 commit comments

Comments
 (0)