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:
parent
8342318fde
commit
472c4e2164
1 changed files with 2 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue