mirror of https://github.com/bumi/lntip
Fix webln usage
This commit is contained in:
parent
d20a73b0a0
commit
37ebaf3834
|
@ -101,12 +101,12 @@ class LnMe {
|
|||
payWithWebln() {
|
||||
if (!webln.isEnabled) {
|
||||
webln.enable().then((weblnResponse) => {
|
||||
return webln.sendPayment({ paymentRequest: this.invoice.payment_request })
|
||||
return webln.sendPayment(this.invoice.payment_request);
|
||||
}).catch((e) => {
|
||||
return this.showPaymentRequest();
|
||||
})
|
||||
} else {
|
||||
return webln.sendPayment({ paymentRequest: this.invoice.payment_request })
|
||||
return webln.sendPayment(this.invoice.payment_request);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue