fix: refresh payments on payment success (#2502)

* fix: refresh payments on payment
This commit is contained in:
dni ⚡ 2024-05-14 18:22:14 +02:00 committed by GitHub
parent 019995078c
commit 05a244d8fd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -349,9 +349,10 @@ new Vue({
.getPayment(this.g.wallet, response.data.payment_hash)
.then(res => {
if (res.data.paid) {
this.parse.show = false
clearInterval(this.parse.paymentChecker)
dismissPaymentMsg()
clearInterval(this.parse.paymentChecker)
this.updatePayments = !this.updatePayments
this.parse.show = false
}
})
}, 2000)
@ -359,6 +360,8 @@ new Vue({
.catch(err => {
dismissPaymentMsg()
LNbits.utils.notifyApiError(err)
this.updatePayments = !this.updatePayments
this.parse.show = false
})
},
payLnurl: function () {