From cc464697a38362f6f90b80baf91dfbfc69e5b6f1 Mon Sep 17 00:00:00 2001 From: Kaosiso Ezealigo Date: Sun, 10 Nov 2024 17:08:55 +0100 Subject: [PATCH] fix(frontend): display `score` when value is 0 in evaluation numeric score vote --- .../Evaluations/EvaluationCardView/EvaluationVotePanel.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agenta-web/src/components/Evaluations/EvaluationCardView/EvaluationVotePanel.tsx b/agenta-web/src/components/Evaluations/EvaluationCardView/EvaluationVotePanel.tsx index 25576a3473..eeb9bfcfee 100644 --- a/agenta-web/src/components/Evaluations/EvaluationCardView/EvaluationVotePanel.tsx +++ b/agenta-web/src/components/Evaluations/EvaluationCardView/EvaluationVotePanel.tsx @@ -270,7 +270,7 @@ const NumericScoreVote: React.FC = ({ > item.variantId === variant.variantId)?.score || + value.find((item) => item.variantId === variant.variantId)?.score ?? undefined } min={min}