diff --git a/static/index.html b/static/index.html index 8070d32..eedf775 100644 --- a/static/index.html +++ b/static/index.html @@ -814,14 +814,14 @@ function renderEvaluation() { ηŠΆζ€ ${evals.map(x => { - const e = x.evaluations[0] || {}; - const t = e.theoretical || {}; - const a = e.actual || {}; + const adv = (x.advice_evaluation && x.advice_evaluation[0]) || {}; + const t = x.theoretical || {}; + const a = x.actual || {}; const status = t.status || 'safe'; const icon = status === 'take_profit_hit' ? '🟒' : status === 'stop_loss_hit' ? 'πŸ”΄' : status === 'in_entry_zone' ? 'πŸ“₯' : 'πŸ’€'; return `
${x.name}
${x.code}
- ${x.current?.slice(0,40)||'β€”'} + ${x.current || (x.advice_evaluation && x.advice_evaluation[0] && x.advice_evaluation[0].current_advice || '') || 'β€”'} ${(t.theoretical_pnl_pct||0).toFixed(1)}% ${(a.actual_pnl_pct||0).toFixed(1)}% ${icon} ${status.replace(/_/g,' ')}