mirror of
https://github.com/christianvidalwolf-prog/CrazeAnalytix.git
synced 2026-08-03 14:25:23 +02:00
fix: simplify green/red logic for inverted metrics in experiments
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user