fix(ui): refresh positions on buy/sell log events
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
85536093b5
commit
15b619efa0
1 changed files with 1 additions and 1 deletions
|
|
@ -630,7 +630,7 @@ function connectLogSSE() {
|
|||
if (log.id <= lastLogId) return;
|
||||
lastLogId = log.id;
|
||||
appendLog(log);
|
||||
if (log.level === 'trade') { loadPositions(); loadClosed(); }
|
||||
if (log.level === 'buy' || log.level === 'sell' || log.level === 'trade') { loadPositions(); loadClosed(); }
|
||||
});
|
||||
logSource.onopen = () => {
|
||||
document.getElementById('log-dot').style.background = 'var(--green)';
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue