fix: simplify green/red logic for inverted metrics in experiments

This commit is contained in:
Christian Vidal Wolf
2026-03-10 14:07:43 +01:00
parent 74d92b83b5
commit cefbc18433
2 changed files with 2 additions and 10 deletions
+1 -1
View File
@@ -586,7 +586,7 @@ const ExperimentDetailView: React.FC<{
);
}
const isPositiveGood = !['acos', 'detail_bsr'].includes(metric);
const isGood = isPositiveGood ? res.lift_percent >= 0 : res.lift_percent <= 0;
const isGood = res.lift_percent >= 0;
return (
<tr key={metric} className="hover:bg-white/[0.02] transition-colors">
<td className="py-4 text-[13px] font-bold text-slate-200">