mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-03-13 19:37:42 +01:00
fix: refresh payments on payment success (#2502)
* fix: refresh payments on payment
This commit is contained in:
parent
019995078c
commit
05a244d8fd
1 changed files with 5 additions and 2 deletions
|
@ -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 () {
|
||||
|
|
Loading…
Add table
Reference in a new issue