diff --git a/scripts/Activity.vue b/scripts/Activity.vue index a5041e21f..0235891cb 100644 --- a/scripts/Activity.vue +++ b/scripts/Activity.vue @@ -63,17 +63,17 @@ async function update(fNewOnly = false, sync = true) { if (cNet.historySyncing) return; let arrTXs; try { - updating.value = true; - - if (txCount !== cNet.arrTxHistory.length || !sync) { + updating.value = true; + + if (txCount !== cNet.arrTxHistory.length || !sync) { arrTXs = cNet.arrTxHistory; - } else { + } else { arrTXs = await cNet.syncTxHistoryChunk(fNewOnly); - } - txCount = arrTXs.length; - if (!arrTXs || cNet !== getNetwork()) return; + } + txCount = arrTXs.length; + if (!arrTXs || cNet !== getNetwork()) return; } finally { - updating.value = false; + updating.value = false; } // Check if all transactions are loaded diff --git a/scripts/settings.js b/scripts/settings.js index 98963877f..a19324652 100644 --- a/scripts/settings.js +++ b/scripts/settings.js @@ -549,7 +549,6 @@ export async function toggleTestnet() { await updateGovernanceTab(); activityDashboard.reset(); stakingDashboard.reset(); - } export function toggleDebug() {