diff --git a/src/accounting-app/views/BalancePage.vue b/src/accounting-app/views/BalancePage.vue index 0a27bf0..2bb7ec3 100644 --- a/src/accounting-app/views/BalancePage.vue +++ b/src/accounting-app/views/BalancePage.vue @@ -17,14 +17,9 @@ const expensesAPI = injectService(SERVICE_TOKENS.EXPENSES_API) const balance = ref(null) const balanceCurrency = ref('sats') -const fiatBalances = ref>({}) const pendingTransactions = ref([]) const isLoading = ref(true) -const fiatBalanceEntries = computed(() => - Object.entries(fiatBalances.value).filter(([, amount]) => Math.abs(amount) > 0.005) -) - const walletKey = computed(() => user.value?.wallets?.[0]?.inkey) const budgetsEnabled = computed(() => import.meta.env.VITE_LIBRA_BUDGETS_ENABLED === 'true') @@ -60,7 +55,6 @@ async function loadData() { balance.value = balanceData.balance balanceCurrency.value = balanceData.currency || 'sats' - fiatBalances.value = balanceData.fiat_balances || {} // Filter for pending transactions (flag = '!') pendingTransactions.value = txData.entries.filter(tx => tx.flag === '!') @@ -118,15 +112,6 @@ function formatFiat(amount: number, currency: string): string { {{ balanceCurrency }} -
- - {{ formatFiat(Math.abs(amount), currency) }} - -

{{ libraOwesUser ? t('libra.balance.owedToYou') : t('libra.balance.youOwe') }}

diff --git a/src/modules/expenses/services/ExpensesAPI.ts b/src/modules/expenses/services/ExpensesAPI.ts index 8cfee1a..3508910 100644 --- a/src/modules/expenses/services/ExpensesAPI.ts +++ b/src/modules/expenses/services/ExpensesAPI.ts @@ -245,11 +245,7 @@ export class ExpensesAPI extends BaseService { /** * Get user's balance with libra */ - async getUserBalance(walletKey: string): Promise<{ - balance: number - currency: string - fiat_balances?: Record - }> { + async getUserBalance(walletKey: string): Promise<{ balance: number; currency: string }> { try { const response = await fetch(`${this.baseUrl}/libra/api/v1/balance`, { method: 'GET',