mirror of
https://github.com/christianvidalwolf-prog/CrazeAnalytix.git
synced 2026-08-03 12:25:22 +02:00
fix: allow calculating results for non-completed experiments
This commit is contained in:
@@ -239,12 +239,12 @@ const ExperimentDetail: React.FC<ExperimentDetailProps> = ({ experimentId, onClo
|
||||
)}
|
||||
|
||||
{/* Calculate Results Button */}
|
||||
{experiment.status === 'completed' && experiment.experiment_units === undefined && salesData.length > 0 && (
|
||||
{salesData.length > 0 && (
|
||||
<button
|
||||
onClick={handleCalculateResults}
|
||||
className="w-full py-3 bg-indigo-600/20 border border-indigo-500/30 hover:bg-indigo-600/30 text-indigo-400 rounded-xl font-medium transition-colors"
|
||||
>
|
||||
📊 Calculate Experiment Results
|
||||
{experiment.experiment_units === undefined ? '📊 Calculate Experiment Results' : '🔄 Refresh Results Data'}
|
||||
</button>
|
||||
)}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user