From ff3ae7c8842a466bea3090ae9ee4c146c7e19c20 Mon Sep 17 00:00:00 2001 From: Lennart van der Molen Date: Sat, 15 Nov 2025 15:25:05 +0100 Subject: [PATCH] Ensure activity balance history updates reach urchin --- web/app.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/web/app.js b/web/app.js index ad51f2d..6c4f089 100644 --- a/web/app.js +++ b/web/app.js @@ -354,6 +354,16 @@ function appendActivityBalanceSnapshot(schedule) { next.splice(0, next.length - BALANCE_HISTORY_LIMIT); } visualsState.balanceHistory = next; + if ( + visualsState.urchin && + typeof visualsState.urchin.appendBalanceHistoryEntry === 'function' + ) { + try { + visualsState.urchin.appendBalanceHistoryEntry(entry); + } catch (error) { + console.warn('[visuals] failed to append balance history entry:', error); + } + } applyBalanceHistoryToUrchin(); }