From 472c4e21640e73409983e6f1f60cb7a17365d916 Mon Sep 17 00:00:00 2001 From: padreug Date: Mon, 10 Nov 2025 10:50:47 +0100 Subject: [PATCH] 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. --- static/js/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/index.js b/static/js/index.js index fcf5b48..2eaaa79 100644 --- a/static/js/index.js +++ b/static/js/index.js @@ -1088,8 +1088,8 @@ window.app = Vue.createApp({ this.receivableDialog.currency = null }, showSettleReceivableDialog(userBalance) { - // Only show for users who owe castle (negative balance) - if (userBalance.balance >= 0) return + // Only show for users who owe castle (positive balance = receivable) + if (userBalance.balance <= 0) return // Clear any existing polling if (this.settleReceivableDialog.pollIntervalId) {