diff --git a/src/accounting-app/views/BalancePage.vue b/src/accounting-app/views/BalancePage.vue index 1484584..66ec3bf 100644 --- a/src/accounting-app/views/BalancePage.vue +++ b/src/accounting-app/views/BalancePage.vue @@ -42,7 +42,8 @@ const pendingFiatCurrency = computed(() => { return tx?.fiat_currency ?? null }) -const balanceIsPositive = computed(() => (balance.value ?? 0) >= 0) +// Castle API: positive = user owes castle, negative = castle owes user +const castleOwesUser = computed(() => (balance.value ?? 0) <= 0) async function loadData() { if (!walletKey.value) return @@ -120,17 +121,17 @@ function formatFiat(amount: number, currency: string): string {
- {{ balanceIsPositive ? t('castle.balance.owedToYou') : t('castle.balance.youOwe') }} +
+ {{ castleOwesUser ? t('castle.balance.owedToYou') : t('castle.balance.youOwe') }}