Spaces:
Sleeping
Sleeping
fix run detail display
Browse files- 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.
|
| 296 |
<tr key={i} className="border-b border-slate-700">
|
| 297 |
-
<td className="py-2 px-3 text-white">{agent.
|
| 298 |
-
<td className="py-2 px-3 text-slate-300">{agent.
|
| 299 |
-
<td className="py-2 px-3 text-slate-300">{agent.
|
| 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>
|