sort in leaderboard correction

This commit is contained in:
mattyl006 2022-12-14 16:08:18 +01:00
parent 3258aa2fd5
commit 6e54e070d0

View File

@ -34,7 +34,7 @@ const Leaderboard = (props) => {
const getMetricIndex = (metricName) => { const getMetricIndex = (metricName) => {
let i = 0; let i = 0;
for (let evaluation of entriesFromApi[0].evaluations) { for (let evaluation of entriesFromApi[0].evaluations) {
if (evaluation.test.metric === metricName) { if (`${evaluation.test.metric}.${evaluation.test.name}` === metricName) {
return i; return i;
} }
i++; i++;