From 00a7dcf055b276b16aa92f48745d84e1a562fedc Mon Sep 17 00:00:00 2001 From: theborakompanioni Date: Thu, 30 Apr 2026 14:15:34 +0200 Subject: [PATCH] refactor: rename blockHeightInreased to blockHeightChanged --- src/App.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index e0d8ade7..16f90c16 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -491,16 +491,16 @@ const WalletInfoAutoReload = () => { function refetchWalletInfoAfterBlockHeightIncrease() { if (currentBlockHeight === undefined) return - const blockHeightIncreased = + const blockHeightChanged = previousBlockHeightRef.current !== undefined && previousBlockHeightRef.current !== currentBlockHeight previousBlockHeightRef.current = currentBlockHeight - if (!blockHeightIncreased) { - console.debug('Abort refetching: Block height did not increase.') + if (!blockHeightChanged) { + console.debug('Abort refetching: Block height did not change.') return } - const delayBefore: Milliseconds = RELOAD_WALLET_INFO_DELAY.AFTER_BLOCK_HEIGHT_CHANGE + const delayBefore = RELOAD_WALLET_INFO_DELAY.AFTER_BLOCK_HEIGHT_CHANGE console.debug('Trigger refetch looking for funds AFTER_BLOCK_HEIGHT_CHANGE with delay %d...', delayBefore) const abortCtrl = new AbortController()