diff --git a/src/accounting-app/views/BalancePage.vue b/src/accounting-app/views/BalancePage.vue index 1335021..8b6492b 100644 --- a/src/accounting-app/views/BalancePage.vue +++ b/src/accounting-app/views/BalancePage.vue @@ -98,8 +98,11 @@ async function loadData() { totalIncomeSats.value = balanceData.total_income_sats || 0 totalIncomeFiat.value = balanceData.total_income_fiat || {} - // Filter for pending transactions (flag = '!') - pendingTransactions.value = txData.entries.filter(tx => tx.flag === '!') + // Filter for pending transactions (flag = '!'), excluding voided ones + // (libra convention: voided keeps '!' flag and carries a 'voided' tag). + pendingTransactions.value = txData.entries.filter( + tx => tx.flag === '!' && !tx.tags?.includes('voided') + ) } catch (error) { console.error('[BalancePage] Error loading data:', error) toast.error('Failed to load balance data')