From d0cb961b49eb97c69bbf23b739811ecefb07a25b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?dni=20=E2=9A=A1?= Date: Thu, 21 Mar 2024 08:42:02 +0100 Subject: [PATCH] bug: wallet page fetchbalance ran twice there is a listener on payments which executes fetchbalance automatically if payments change. line 822 --- lnbits/static/js/wallet.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lnbits/static/js/wallet.js b/lnbits/static/js/wallet.js index 724e3c281..bdf48c951 100644 --- a/lnbits/static/js/wallet.js +++ b/lnbits/static/js/wallet.js @@ -360,7 +360,6 @@ new Vue({ }, onPaymentReceived: function (paymentHash) { this.fetchPayments() - this.fetchBalance() if (this.receive.paymentHash === paymentHash) { this.receive.show = false @@ -589,7 +588,6 @@ new Vue({ clearInterval(this.parse.paymentChecker) dismissPaymentMsg() this.fetchPayments() - this.fetchBalance() } }) }, 2000) @@ -630,8 +628,6 @@ new Vue({ dismissPaymentMsg() clearInterval(this.parse.paymentChecker) this.fetchPayments() - this.fetchBalance() - // show lnurlpay success action if (response.data.success_action) { switch (response.data.success_action.tag) { @@ -840,7 +836,6 @@ new Vue({ if (this.$q.screen.lt.md) { this.mobileSimple = true } - this.fetchBalance() this.fetchPayments() this.update.name = this.g.wallet.name