Corrects receivable dialog display logic

Reverses the condition for displaying the settle receivable dialog.

It now correctly shows the dialog only for users with a positive balance,
which indicates they owe the castle.
This commit is contained in:
padreug 2025-11-10 10:50:47 +01:00
parent 8342318fde
commit 472c4e2164

View file

@ -1088,8 +1088,8 @@ window.app = Vue.createApp({
this.receivableDialog.currency = null this.receivableDialog.currency = null
}, },
showSettleReceivableDialog(userBalance) { showSettleReceivableDialog(userBalance) {
// Only show for users who owe castle (negative balance) // Only show for users who owe castle (positive balance = receivable)
if (userBalance.balance >= 0) return if (userBalance.balance <= 0) return
// Clear any existing polling // Clear any existing polling
if (this.settleReceivableDialog.pollIntervalId) { if (this.settleReceivableDialog.pollIntervalId) {