mirror of
https://github.com/christianvidalwolf-prog/CrazeAnalytix.git
synced 2026-08-03 15:45:24 +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 */}
|
{/* Calculate Results Button */}
|
||||||
{experiment.status === 'completed' && experiment.experiment_units === undefined && salesData.length > 0 && (
|
{salesData.length > 0 && (
|
||||||
<button
|
<button
|
||||||
onClick={handleCalculateResults}
|
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"
|
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>
|
</button>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user