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