From fec5773928b75bb28ffa3e79aa3c97106b986344 Mon Sep 17 00:00:00 2001 From: Alexis Date: Mon, 23 Mar 2026 14:26:52 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20Ajustes=20de=20payload=20para=20que=20en?= =?UTF-8?q?caje=20con=20lo=20que=20espera=20recibir=20la=20funci=C3=B3n=20?= =?UTF-8?q?en=20el=20backend?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/App.jsx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index e34c01b..a0f6f3d 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -12,12 +12,15 @@ function App() { const handleCalculate = async () => { setIsLoading(true); setResult(null); - - const currentReferences = [levels[0], levels[levels.length - 1]]; + + const currentReferences = { + [levels[0]]: 0, + [levels[levels.length - 1]]: 1 + }; const payload = { - name: criterionName || "Criterio sin nombre", - labels: levels, + criterion_name: criterionName || "Criterio sin nombre", + levels: levels, blank_cards: blankCards, references: currentReferences };