nice-bill commited on
Commit
de2540f
·
1 Parent(s): c1de56f

fix run detail display

Browse files
Files changed (1) hide show
  1. frontend/src/App.jsx +4 -4
frontend/src/App.jsx CHANGED
@@ -292,11 +292,11 @@ function App() {
292
  </tr>
293
  </thead>
294
  <tbody>
295
- {(selectedRun.agents || []).map((agent, i) => (
296
  <tr key={i} className="border-b border-slate-700">
297
- <td className="py-2 px-3 text-white">{agent.name}</td>
298
- <td className="py-2 px-3 text-slate-300">{agent.token_a?.toFixed(2)}</td>
299
- <td className="py-2 px-3 text-slate-300">{agent.token_b?.toFixed(2)}</td>
300
  <td className={`py-2 px-3 ${agent.profit >= 0 ? 'text-green-500' : 'text-red-500'}`}>
301
  {agent.profit?.toFixed(2)}
302
  </td>
 
292
  </tr>
293
  </thead>
294
  <tbody>
295
+ {(selectedRun.agent_states || []).map((agent, i) => (
296
  <tr key={i} className="border-b border-slate-700">
297
+ <td className="py-2 px-3 text-white">{agent.agent_name}</td>
298
+ <td className="py-2 px-3 text-slate-300">{agent.token_a_balance?.toFixed(2)}</td>
299
+ <td className="py-2 px-3 text-slate-300">{agent.token_b_balance?.toFixed(2)}</td>
300
  <td className={`py-2 px-3 ${agent.profit >= 0 ? 'text-green-500' : 'text-red-500'}`}>
301
  {agent.profit?.toFixed(2)}
302
  </td>