diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index a0f6f3d..284ac4a 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -12,10 +12,13 @@ function App() { const handleCalculate = async () => { setIsLoading(true); setResult(null); + + const firstIndex = "0"; + const lastIndex = (levels.length - 1).toString(); const currentReferences = { - [levels[0]]: 0, - [levels[levels.length - 1]]: 1 + [firstIndex]: 0, + [lastIndex]: 1 }; const payload = { @@ -200,16 +203,6 @@ function App() { - {/* --- NUEVO: CAJA PARA VER EL RESULTADO (TEMPORAL PARA DEBUG) --- */} - {result && ( -
- {JSON.stringify(result, null, 2)}
-
-