chore: enable verbose error logging on experiment calculations to reveal silent production errors

This commit is contained in:
Christian Vidal Wolf
2026-02-21 21:56:35 +01:00
parent 9259129f95
commit 58cc863748
3 changed files with 23 additions and 10 deletions
+3
View File
@@ -55,9 +55,12 @@ const ExperimentDetail: React.FC<ExperimentDetailProps> = ({ experimentId, onClo
setLoading(true);
try {
const perf = await calculateExperimentPerformance(experiment, salesData);
console.log('Calculation yielded performance delta payload:', perf);
const updated = await updateExperiment(experiment.id, perf);
console.log('Update return from backend:', updated);
setExperiment(updated);
} catch (e: any) {
console.error('Full calculation error:', e);
alert(`Error calculating results: ${e.message}`);
} finally {
setLoading(false);