Skip to content

Commit e376808

Browse files
authored
Merge pull request #154 from LennartvdM/codex/fix-activity-balance-bar-click-regression
Fix balance bar click handling when history updates
2 parents 93ca7bb + ff3ae7c commit e376808

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

web/app.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,16 @@ function appendActivityBalanceSnapshot(schedule) {
354354
next.splice(0, next.length - BALANCE_HISTORY_LIMIT);
355355
}
356356
visualsState.balanceHistory = next;
357+
if (
358+
visualsState.urchin &&
359+
typeof visualsState.urchin.appendBalanceHistoryEntry === 'function'
360+
) {
361+
try {
362+
visualsState.urchin.appendBalanceHistoryEntry(entry);
363+
} catch (error) {
364+
console.warn('[visuals] failed to append balance history entry:', error);
365+
}
366+
}
357367
applyBalanceHistoryToUrchin();
358368
}
359369

0 commit comments

Comments
 (0)