bug: wallet page fetchbalance ran twice

there is a listener on payments which executes fetchbalance automatically if payments change. line 822
This commit is contained in:
dni ⚡
2024-03-21 13:13:33 +01:00
committed by Pavol Rusnak
parent d208e68885
commit d0cb961b49
-5
View File
@@ -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