From cc023bf7f2c92c05a5e0562b96c0d7575456b7a9 Mon Sep 17 00:00:00 2001 From: "D. Seifert" Date: Tue, 18 Mar 2025 23:00:59 +0800 Subject: [PATCH] lint --- app/components/sidebar/SaveReproduction.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/components/sidebar/SaveReproduction.tsx b/app/components/sidebar/SaveReproduction.tsx index f09ce4bb..8e310289 100644 --- a/app/components/sidebar/SaveReproduction.tsx +++ b/app/components/sidebar/SaveReproduction.tsx @@ -70,15 +70,19 @@ export function SaveReproductionModal() { console.log('SubmitReproduction'); const simulationData = getLastUserSimulationData(); + if (!simulationData) { toast.error('No simulation data found'); return; } + const messages = getLastSimulationChatMessages(); + if (!messages) { toast.error('No user prompt found'); return; } + const reproData = { simulationData, messages }; /** @@ -87,6 +91,7 @@ export function SaveReproductionModal() { const solution: BoltProblemSolution = { evaluator: problem.solution?.evaluator, ...reproData, + /* * TODO: Also store recordingId for easier debugging. * recordingId,